• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo2android.py --config cargo2android.json.
2// Do not modify this file as changes will be overridden on upgrade.
3
4package {
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
21rust_library {
22    name: "libuntrusted",
23    // has rustc warnings
24    host_supported: true,
25    crate_name: "untrusted",
26    cargo_env_compat: true,
27    cargo_pkg_version: "0.7.1",
28    srcs: ["src/untrusted.rs"],
29    edition: "2018",
30    apex_available: [
31        "//apex_available:platform",
32        "com.android.compos",
33        "com.android.resolv",
34        "com.android.virt",
35    ],
36    product_available: true,
37    vendor_available: true,
38    min_sdk_version: "29",
39}
40
41rust_test {
42    name: "untrusted_test_tests_tests",
43    // has rustc warnings
44    host_supported: true,
45    crate_name: "tests",
46    cargo_env_compat: true,
47    cargo_pkg_version: "0.7.1",
48    srcs: ["tests/tests.rs"],
49    test_suites: ["general-tests"],
50    auto_gen_config: true,
51    test_options: {
52        unit_test: true,
53    },
54    edition: "2018",
55    rustlibs: [
56        "libuntrusted",
57    ],
58}
59