• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// This file is generated by cargo_embargo.
2// Do not modify this file after the first "rust_*" or "genrule" module
3// because the changes will be overridden on upgrade.
4// Content before the first "rust_*" or "genrule" module is preserved.
5
6package {
7    default_applicable_licenses: ["external_rust_crates_downcast-rs_license"],
8}
9
10// Added automatically by a large-scale-change
11//
12// large-scale-change included anything that looked like it might be a license
13// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
14//
15// Please consider removing redundant or irrelevant files from 'license_text:'.
16// See: http://go/android-license-faq
17license {
18    name: "external_rust_crates_downcast-rs_license",
19    visibility: [":__subpackages__"],
20    license_kinds: [
21        "SPDX-license-identifier-Apache-2.0",
22    ],
23    license_text: [
24        "LICENSE-APACHE",
25        "LICENSE-MIT",
26    ],
27}
28
29rust_test {
30    name: "downcast-rs_test_src_lib",
31    host_supported: true,
32    crate_name: "downcast_rs",
33    cargo_env_compat: true,
34    cargo_pkg_version: "1.2.0",
35    crate_root: "src/lib.rs",
36    test_suites: ["general-tests"],
37    auto_gen_config: true,
38    test_options: {
39        unit_test: true,
40    },
41    edition: "2015",
42    features: [
43        "default",
44        "std",
45    ],
46}
47
48rust_test {
49    name: "downcast-rs_test_tests_import_via_macro_use",
50    host_supported: true,
51    crate_name: "import_via_macro_use",
52    cargo_env_compat: true,
53    cargo_pkg_version: "1.2.0",
54    crate_root: "tests/import_via_macro_use.rs",
55    test_suites: ["general-tests"],
56    auto_gen_config: true,
57    test_options: {
58        unit_test: true,
59    },
60    edition: "2015",
61    features: [
62        "default",
63        "std",
64    ],
65    rustlibs: ["libdowncast_rs"],
66}
67
68rust_test {
69    name: "downcast-rs_test_tests_use_via_namespace",
70    host_supported: true,
71    crate_name: "use_via_namespace",
72    cargo_env_compat: true,
73    cargo_pkg_version: "1.2.0",
74    crate_root: "tests/use_via_namespace.rs",
75    test_suites: ["general-tests"],
76    auto_gen_config: true,
77    test_options: {
78        unit_test: true,
79    },
80    edition: "2015",
81    features: [
82        "default",
83        "std",
84    ],
85    rustlibs: ["libdowncast_rs"],
86}
87
88rust_library {
89    name: "libdowncast_rs",
90    host_supported: true,
91    crate_name: "downcast_rs",
92    cargo_env_compat: true,
93    cargo_pkg_version: "1.2.0",
94    crate_root: "src/lib.rs",
95    edition: "2015",
96    features: [
97        "default",
98        "std",
99    ],
100    apex_available: [
101        "//apex_available:platform",
102        "//apex_available:anyapex",
103    ],
104    product_available: true,
105    vendor_available: true,
106    min_sdk_version: "29",
107}
108