Joel Galenson | 6dbeb9a | 2021-04-28 09:41:22 -0700 | [diff] [blame] | 1 | // 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 Stoep | e595b63 | 2020-12-04 14:18:07 +0100 | [diff] [blame] | 3 | |
Bob Badour | 7d8f250 | 2021-02-12 15:50:29 -0800 | [diff] [blame] | 4 | package { |
| 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 |
| 10 | license { |
| 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 Stoep | e595b63 | 2020-12-04 14:18:07 +0100 | [diff] [blame] | 21 | rust_library { |
| 22 | name: "libuntrusted", |
Joel Galenson | 6dbeb9a | 2021-04-28 09:41:22 -0700 | [diff] [blame] | 23 | // has rustc warnings |
Jeff Vander Stoep | e595b63 | 2020-12-04 14:18:07 +0100 | [diff] [blame] | 24 | host_supported: true, |
| 25 | crate_name: "untrusted", |
Joel Galenson | 3d990a6 | 2021-11-29 14:05:51 -0800 | [diff] [blame] | 26 | cargo_env_compat: true, |
| 27 | cargo_pkg_version: "0.7.1", |
Jeff Vander Stoep | e595b63 | 2020-12-04 14:18:07 +0100 | [diff] [blame] | 28 | srcs: ["src/untrusted.rs"], |
| 29 | edition: "2018", |
Bernie Innocenti | 7559815 | 2020-12-12 03:48:09 +0900 | [diff] [blame] | 30 | apex_available: [ |
| 31 | "//apex_available:platform", |
Alan Stokes | d8d3309 | 2021-06-22 11:22:55 +0100 | [diff] [blame] | 32 | "com.android.compos", |
Bernie Innocenti | 7559815 | 2020-12-12 03:48:09 +0900 | [diff] [blame] | 33 | "com.android.resolv", |
Jiyong Park | d0de1ba | 2021-08-20 23:51:44 +0900 | [diff] [blame] | 34 | "com.android.virt", |
Bernie Innocenti | 7559815 | 2020-12-12 03:48:09 +0900 | [diff] [blame] | 35 | ], |
| 36 | min_sdk_version: "29", |
Jeff Vander Stoep | e595b63 | 2020-12-04 14:18:07 +0100 | [diff] [blame] | 37 | } |
| 38 | |
Jeff Vander Stoep | e595b63 | 2020-12-04 14:18:07 +0100 | [diff] [blame] | 39 | rust_test { |
Joel Galenson | 3d990a6 | 2021-11-29 14:05:51 -0800 | [diff] [blame] | 40 | name: "untrusted_test_tests_tests", |
Joel Galenson | 6dbeb9a | 2021-04-28 09:41:22 -0700 | [diff] [blame] | 41 | // has rustc warnings |
Joel Galenson | 3d990a6 | 2021-11-29 14:05:51 -0800 | [diff] [blame] | 42 | host_supported: true, |
| 43 | crate_name: "tests", |
| 44 | cargo_env_compat: true, |
| 45 | cargo_pkg_version: "0.7.1", |
Jeff Vander Stoep | e595b63 | 2020-12-04 14:18:07 +0100 | [diff] [blame] | 46 | srcs: ["tests/tests.rs"], |
| 47 | test_suites: ["general-tests"], |
| 48 | auto_gen_config: true, |
Joel Galenson | 3d990a6 | 2021-11-29 14:05:51 -0800 | [diff] [blame] | 49 | test_options: { |
| 50 | unit_test: true, |
| 51 | }, |
Jeff Vander Stoep | e595b63 | 2020-12-04 14:18:07 +0100 | [diff] [blame] | 52 | edition: "2018", |
| 53 | rustlibs: [ |
| 54 | "libuntrusted", |
| 55 | ], |
| 56 | } |
| 57 | |
Joel Galenson | 3d990a6 | 2021-11-29 14:05:51 -0800 | [diff] [blame] | 58 | // 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' |