blob: 52d489178e882d996e6a5335bea8b5b11cea9f91 [file] [log] [blame]
Joel Galenson90e6ca22021-04-28 08:18:22 -07001// This file is generated by cargo2android.py --config cargo2android.json.
2// Do not modify this file as changes will be overridden on upgrade.
Jason Macnakdffb6a02020-03-18 02:00:53 +00003
Bob Badour20ac7ff2021-02-12 18:08:51 -08004package {
5 default_applicable_licenses: ["external_rust_crates_pin-utils_license"],
6}
7
8// Added automatically by a large-scale-change that took the approach of
9// 'apply every license found to every target'. While this makes sure we respect
10// every license restriction, it may not be entirely correct.
11//
12// e.g. GPL in an MIT project might only apply to the contrib/ directory.
13//
14// Please consider splitting the single license below into multiple licenses,
15// taking care not to lose any license_kind information, and overriding the
16// default license using the 'licenses: [...]' property on targets as needed.
17//
18// For unused files, consider creating a 'fileGroup' with "//visibility:private"
19// to attach the license to, and including a comment whether the files may be
20// used in the current project.
21//
22// large-scale-change included anything that looked like it might be a license
23// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
24//
25// Please consider removing redundant or irrelevant files from 'license_text:'.
26// See: http://go/android-license-faq
27license {
28 name: "external_rust_crates_pin-utils_license",
29 visibility: [":__subpackages__"],
30 license_kinds: [
31 "SPDX-license-identifier-Apache-2.0",
32 "SPDX-license-identifier-MIT",
33 ],
34 license_text: [
35 "LICENSE-APACHE",
36 "LICENSE-MIT",
37 ],
38}
39
Matthew Maurer23898632020-07-06 13:45:08 -070040rust_library {
Jason Macnakdffb6a02020-03-18 02:00:53 +000041 name: "libpin_utils",
Andrew Walbrand296d1a2020-06-09 15:28:34 +010042 host_supported: true,
Jason Macnakdffb6a02020-03-18 02:00:53 +000043 crate_name: "pin_utils",
44 srcs: ["src/lib.rs"],
45 edition: "2018",
Jiyong Park9f190432020-12-07 15:49:47 +090046 apex_available: [
47 "//apex_available:platform",
48 "com.android.virt",
49 ],
Jason Macnakdffb6a02020-03-18 02:00:53 +000050}
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070051
Ivan Lozano92ed69e2020-06-11 13:42:23 -040052rust_defaults {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070053 name: "pin-utils_defaults",
54 crate_name: "pin_utils",
Chih-Hung Hsieh3caea992020-07-16 16:27:45 -070055 srcs: ["src/lib.rs"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070056 test_suites: ["general-tests"],
57 auto_gen_config: true,
58 edition: "2018",
59}
60
61rust_test_host {
62 name: "pin-utils_host_test_src_lib",
63 defaults: ["pin-utils_defaults"],
Joel Galenson90e6ca22021-04-28 08:18:22 -070064 test_options: {
65 unit_test: true,
66 },
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070067}
68
69rust_test {
70 name: "pin-utils_device_test_src_lib",
71 defaults: ["pin-utils_defaults"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070072}
73
74rust_defaults {
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -070075 name: "pin-utils_defaults_pin_utils",
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070076 crate_name: "pin_utils",
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070077 test_suites: ["general-tests"],
78 auto_gen_config: true,
79 edition: "2018",
Matthew Maurer23898632020-07-06 13:45:08 -070080 rustlibs: [
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070081 "libpin_utils",
82 ],
83}
84
Chih-Hung Hsiehe4783712020-06-16 00:57:52 -070085rust_test_host {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070086 name: "pin-utils_host_test_tests_projection",
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -070087 defaults: ["pin-utils_defaults_pin_utils"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070088 srcs: ["tests/projection.rs"],
Joel Galenson90e6ca22021-04-28 08:18:22 -070089 test_options: {
90 unit_test: true,
91 },
Ivan Lozano92ed69e2020-06-11 13:42:23 -040092}
93
Andrew Walbrand296d1a2020-06-09 15:28:34 +010094rust_test {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070095 name: "pin-utils_device_test_tests_projection",
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -070096 defaults: ["pin-utils_defaults_pin_utils"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070097 srcs: ["tests/projection.rs"],
Chih-Hung Hsiehe4783712020-06-16 00:57:52 -070098}
99
100rust_test_host {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -0700101 name: "pin-utils_host_test_tests_stack_pin",
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -0700102 defaults: ["pin-utils_defaults_pin_utils"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -0700103 srcs: ["tests/stack_pin.rs"],
Joel Galenson90e6ca22021-04-28 08:18:22 -0700104 test_options: {
105 unit_test: true,
106 },
Ivan Lozano92ed69e2020-06-11 13:42:23 -0400107}
108
Andrew Walbrand296d1a2020-06-09 15:28:34 +0100109rust_test {
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -0700110 name: "pin-utils_device_test_tests_stack_pin",
Chih-Hung Hsiehcead1602020-07-14 16:43:35 -0700111 defaults: ["pin-utils_defaults_pin_utils"],
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -0700112 srcs: ["tests/stack_pin.rs"],
Chih-Hung Hsiehe4783712020-06-16 00:57:52 -0700113}