blob: 63a1a2364e6d0494b5cb04f935125fabda8d6d3d [file] [log] [blame]
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CROS_WORKON_COMMIT="57779f9c27d62896f66cced9cc88443ae9585372"
CROS_WORKON_TREE="2d96baa3471bb11a40ea7acad95813e0bb917833"
CROS_RUST_SUBDIR="libchromeos-rs"
CROS_WORKON_LOCALNAME="../platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_SUBTREE="${CROS_RUST_SUBDIR}"
inherit cros-workon cros-rust
DESCRIPTION="A Rust utility library for Chrome OS"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/libchromeos-rs/"
LICENSE="BSD-Google"
KEYWORDS="*"
IUSE="test"
DEPEND="chromeos-base/system_api:=
sys-apps/dbus:=
dev-rust/data_model:=
=dev-rust/futures-0.3*:=
=dev-rust/getopts-0.2*:=
=dev-rust/intrusive-collections-0.9*:=
=dev-rust/libc-0.2*:=
=dev-rust/log-0.4*:=
>=dev-rust/protobuf-2.1:=
!>=dev-rust/protobuf-3.0:=
"
RDEPEND="!!<=dev-rust/libchromeos-0.1.0-r2"
src_test() {
# TODO(1157860) Portage already runs tests in parallel and these tests appear
# to be load sensitive. Decide if the failures need fixes or if --test-threads=1
# should stay.
cros-rust_src_test -- --test-threads=1
}