• 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_num-traits_license"],
8}
9
10// Added automatically by a large-scale-change that took the approach of
11// 'apply every license found to every target'. While this makes sure we respect
12// every license restriction, it may not be entirely correct.
13//
14// e.g. GPL in an MIT project might only apply to the contrib/ directory.
15//
16// Please consider splitting the single license below into multiple licenses,
17// taking care not to lose any license_kind information, and overriding the
18// default license using the 'licenses: [...]' property on targets as needed.
19//
20// For unused files, consider creating a 'fileGroup' with "//visibility:private"
21// to attach the license to, and including a comment whether the files may be
22// used in the current project.
23//
24// large-scale-change included anything that looked like it might be a license
25// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
26//
27// Please consider removing redundant or irrelevant files from 'license_text:'.
28// See: http://go/android-license-faq
29license {
30    name: "external_rust_crates_num-traits_license",
31    visibility: [":__subpackages__"],
32    license_kinds: [
33        "SPDX-license-identifier-Apache-2.0",
34        "SPDX-license-identifier-MIT",
35    ],
36    license_text: [
37        "LICENSE-APACHE",
38        "LICENSE-MIT",
39    ],
40}
41
42rust_library {
43    name: "libnum_traits",
44    host_supported: true,
45    crate_name: "num_traits",
46    cargo_env_compat: true,
47    cargo_pkg_version: "0.2.17",
48    crate_root: "src/lib.rs",
49    edition: "2018",
50    features: [
51        "default",
52        "std",
53    ],
54    cfgs: [
55        "has_copysign",
56        "has_div_euclid",
57        "has_float_to_from_bytes",
58        "has_int_to_from_bytes",
59        "has_is_subnormal",
60        "has_leading_trailing_ones",
61        "has_reverse_bits",
62        "has_to_int_unchecked",
63    ],
64    apex_available: [
65        "//apex_available:platform",
66        "com.android.btservices",
67        "com.android.compos",
68        "com.android.uwb",
69        "com.android.virt",
70    ],
71    product_available: true,
72    vendor_available: true,
73    min_sdk_version: "29",
74}
75
76rust_test {
77    name: "num-traits_test_src_lib",
78    host_supported: true,
79    crate_name: "num_traits",
80    cargo_env_compat: true,
81    cargo_pkg_version: "0.2.17",
82    crate_root: "src/lib.rs",
83    test_suites: ["general-tests"],
84    auto_gen_config: true,
85    test_options: {
86        unit_test: true,
87    },
88    edition: "2018",
89    features: [
90        "default",
91        "std",
92    ],
93    cfgs: [
94        "has_copysign",
95        "has_div_euclid",
96        "has_float_to_from_bytes",
97        "has_int_to_from_bytes",
98        "has_is_subnormal",
99        "has_leading_trailing_ones",
100        "has_reverse_bits",
101        "has_to_int_unchecked",
102    ],
103}
104
105rust_test {
106    name: "num-traits_test_tests_cast",
107    host_supported: true,
108    crate_name: "cast",
109    cargo_env_compat: true,
110    cargo_pkg_version: "0.2.17",
111    crate_root: "tests/cast.rs",
112    test_suites: ["general-tests"],
113    auto_gen_config: true,
114    test_options: {
115        unit_test: true,
116    },
117    edition: "2018",
118    features: [
119        "default",
120        "std",
121    ],
122    cfgs: [
123        "has_copysign",
124        "has_div_euclid",
125        "has_float_to_from_bytes",
126        "has_int_to_from_bytes",
127        "has_is_subnormal",
128        "has_leading_trailing_ones",
129        "has_reverse_bits",
130        "has_to_int_unchecked",
131    ],
132    rustlibs: ["libnum_traits"],
133}
134