• 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    min_sdk_version: "29",
37}
38
39rust_test {
40    name: "untrusted_test_tests_tests",
41    // has rustc warnings
42    host_supported: true,
43    crate_name: "tests",
44    cargo_env_compat: true,
45    cargo_pkg_version: "0.7.1",
46    srcs: ["tests/tests.rs"],
47    test_suites: ["general-tests"],
48    auto_gen_config: true,
49    test_options: {
50        unit_test: true,
51    },
52    edition: "2018",
53    rustlibs: [
54        "libuntrusted",
55    ],
56}
57
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'
62