blob: 121cba8d5815a3b1318a4540ecb74a202421c77b [file] [log] [blame]
Jakub Koture0bbb9e2020-12-22 09:58:47 +01001// This file is generated by cargo2android.py --run --device --dependencies --tests.
2// Do not modify this file as changes will be overridden on upgrade.
3
Bob Badourc74c7412021-03-17 13:03:53 -07004package {
5 default_applicable_licenses: [
6 "external_rust_crates_crossbeam-epoch_license",
7 ],
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_crossbeam-epoch_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
Jakub Koture0bbb9e2020-12-22 09:58:47 +010042rust_defaults {
43 name: "crossbeam-epoch_defaults",
44 crate_name: "crossbeam_epoch",
45 // has rustc warnings
46 srcs: ["src/lib.rs"],
47 test_suites: ["general-tests"],
48 auto_gen_config: true,
49 edition: "2018",
50 features: [
51 "alloc",
52 "default",
53 "lazy_static",
54 "std",
55 ],
56 rustlibs: [
57 "libcfg_if",
58 "libcrossbeam_utils",
59 "liblazy_static",
60 "libmemoffset",
61 "librand",
62 "libscopeguard",
63 ],
64 proc_macros: ["libconst_fn"],
65}
66
67rust_test_host {
68 name: "crossbeam-epoch_host_test_src_lib",
69 defaults: ["crossbeam-epoch_defaults"],
70 test_options: {
71 unit_test: true,
72 },
73}
74
75rust_test {
76 name: "crossbeam-epoch_device_test_src_lib",
77 defaults: ["crossbeam-epoch_defaults"],
78}
79
80rust_library {
81 name: "libcrossbeam_epoch",
82 // has rustc warnings
83 host_supported: true,
84 crate_name: "crossbeam_epoch",
85 srcs: ["src/lib.rs"],
86 edition: "2018",
87 features: [
88 "alloc",
89 "default",
90 "lazy_static",
91 "std",
92 ],
93 rustlibs: [
94 "libcfg_if",
95 "libcrossbeam_utils",
96 "liblazy_static",
97 "libmemoffset",
98 "libscopeguard",
99 ],
100 proc_macros: ["libconst_fn"],
101}
102
103// dependent_library ["feature_list"]
104// autocfg-1.0.1
105// cfg-if-1.0.0
106// const_fn-0.4.5
107// crossbeam-utils-0.8.3 "lazy_static,std"
108// getrandom-0.1.16 "std"
109// lazy_static-1.4.0
110// libc-0.2.87
111// memoffset-0.6.1 "default"
112// ppv-lite86-0.2.10 "simd,std"
113// rand-0.7.3 "alloc,default,getrandom,getrandom_package,libc,std"
114// rand_chacha-0.2.2 "std"
115// rand_core-0.5.1 "alloc,getrandom,std"
116// scopeguard-1.1.0