blob: fb8d206301ef7c05f7600993b07766b2edf939ce [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",
Joel Galenson45c3df72021-11-29 14:04:42 -080044 cargo_env_compat: true,
45 cargo_pkg_version: "0.1.0",
Jason Macnakdffb6a02020-03-18 02:00:53 +000046 srcs: ["src/lib.rs"],
47 edition: "2018",
Jiyong Park9f190432020-12-07 15:49:47 +090048 apex_available: [
49 "//apex_available:platform",
Roopa Sattiraju93a213f2021-12-21 17:09:08 -080050 "com.android.bluetooth",
Luke Huang522299a2021-06-22 12:25:06 +080051 "com.android.resolv",
Jiyong Park9f190432020-12-07 15:49:47 +090052 "com.android.virt",
53 ],
David Duarte50f0bb52022-03-25 13:30:04 +000054 vendor_available: true,
Luke Huang522299a2021-06-22 12:25:06 +080055 min_sdk_version: "29",
Jason Macnakdffb6a02020-03-18 02:00:53 +000056}
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070057
Ivan Lozano92ed69e2020-06-11 13:42:23 -040058rust_defaults {
Joel Galenson45c3df72021-11-29 14:04:42 -080059 name: "pin-utils_test_defaults",
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070060 crate_name: "pin_utils",
Joel Galenson45c3df72021-11-29 14:04:42 -080061 cargo_env_compat: true,
62 cargo_pkg_version: "0.1.0",
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070063 test_suites: ["general-tests"],
64 auto_gen_config: true,
65 edition: "2018",
Matthew Maurer23898632020-07-06 13:45:08 -070066 rustlibs: [
Chih-Hung Hsiehfdf4ae32020-05-07 17:09:22 -070067 "libpin_utils",
68 ],
69}
70
Joel Galenson45c3df72021-11-29 14:04:42 -080071rust_test {
72 name: "pin-utils_test_tests_projection",
73 defaults: ["pin-utils_test_defaults"],
74 host_supported: true,
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070075 srcs: ["tests/projection.rs"],
Joel Galenson90e6ca22021-04-28 08:18:22 -070076 test_options: {
77 unit_test: true,
78 },
Ivan Lozano92ed69e2020-06-11 13:42:23 -040079}
80
Andrew Walbrand296d1a2020-06-09 15:28:34 +010081rust_test {
Joel Galenson45c3df72021-11-29 14:04:42 -080082 name: "pin-utils_test_tests_stack_pin",
83 defaults: ["pin-utils_test_defaults"],
84 host_supported: true,
Chih-Hung Hsieh0152f342020-07-12 04:19:50 -070085 srcs: ["tests/stack_pin.rs"],
Joel Galenson90e6ca22021-04-28 08:18:22 -070086 test_options: {
87 unit_test: true,
88 },
Ivan Lozano92ed69e2020-06-11 13:42:23 -040089}