blob: 907d6e64a702b765c6df2da0baec43d919ba7db4 [file] [log] [blame]
Joel Galenson6dbeb9a2021-04-28 09:41:22 -07001// This file is generated by cargo2android.py --config cargo2android.json.
2// Do not modify this file as changes will be overridden on upgrade.
Jeff Vander Stoepe595b632020-12-04 14:18:07 +01003
Bob Badour7d8f2502021-02-12 15:50:29 -08004package {
5 default_applicable_licenses: ["external_rust_crates_untrusted_license"],
6}
7
8// Added automatically by a large-scale-change
9// See: http://go/android-license-faq
10license {
11 name: "external_rust_crates_untrusted_license",
12 visibility: [":__subpackages__"],
13 license_kinds: [
14 "SPDX-license-identifier-ISC",
15 ],
16 license_text: [
17 "LICENSE.txt",
18 ],
19}
20
Jeff Vander Stoepe595b632020-12-04 14:18:07 +010021rust_library {
22 name: "libuntrusted",
Joel Galenson6dbeb9a2021-04-28 09:41:22 -070023 // has rustc warnings
Jeff Vander Stoepe595b632020-12-04 14:18:07 +010024 host_supported: true,
25 crate_name: "untrusted",
Joel Galenson3d990a62021-11-29 14:05:51 -080026 cargo_env_compat: true,
27 cargo_pkg_version: "0.7.1",
Jeff Vander Stoepe595b632020-12-04 14:18:07 +010028 srcs: ["src/untrusted.rs"],
29 edition: "2018",
Bernie Innocenti75598152020-12-12 03:48:09 +090030 apex_available: [
31 "//apex_available:platform",
Alan Stokesd8d33092021-06-22 11:22:55 +010032 "com.android.compos",
Bernie Innocenti75598152020-12-12 03:48:09 +090033 "com.android.resolv",
Jiyong Parkd0de1ba2021-08-20 23:51:44 +090034 "com.android.virt",
Bernie Innocenti75598152020-12-12 03:48:09 +090035 ],
36 min_sdk_version: "29",
Jeff Vander Stoepe595b632020-12-04 14:18:07 +010037}
38
Jeff Vander Stoepe595b632020-12-04 14:18:07 +010039rust_test {
Joel Galenson3d990a62021-11-29 14:05:51 -080040 name: "untrusted_test_tests_tests",
Joel Galenson6dbeb9a2021-04-28 09:41:22 -070041 // has rustc warnings
Joel Galenson3d990a62021-11-29 14:05:51 -080042 host_supported: true,
43 crate_name: "tests",
44 cargo_env_compat: true,
45 cargo_pkg_version: "0.7.1",
Jeff Vander Stoepe595b632020-12-04 14:18:07 +010046 srcs: ["tests/tests.rs"],
47 test_suites: ["general-tests"],
48 auto_gen_config: true,
Joel Galenson3d990a62021-11-29 14:05:51 -080049 test_options: {
50 unit_test: true,
51 },
Jeff Vander Stoepe595b632020-12-04 14:18:07 +010052 edition: "2018",
53 rustlibs: [
54 "libuntrusted",
55 ],
56}
57
Joel Galenson3d990a62021-11-29 14:05:51 -080058// Errors when listing tests:
59// error: lint `non_autolinks` has been renamed to `rustdoc::bare_urls`
60// error: aborting due to previous error
61// error: test failed, to rerun pass '--doc'