Joel Galenson | e286354 | 2021-04-28 08:08:53 -0700 | [diff] [blame] | 1 | // This file is generated by cargo2android.py --config cargo2android.json. |
Elliott Hughes | e116d73 | 2021-04-01 16:26:32 -0700 | [diff] [blame] | 2 | // Do not modify this file as changes will be overridden on upgrade. |
Chih-Hung Hsieh | ca5c755 | 2020-05-13 16:07:37 -0700 | [diff] [blame] | 3 | |
Bob Badour | 79e85f7 | 2021-02-12 16:14:12 -0800 | [diff] [blame] | 4 | package { |
| 5 | default_applicable_licenses: ["external_rust_crates_once_cell_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 |
| 27 | license { |
| 28 | name: "external_rust_crates_once_cell_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 Maurer | 8c36430 | 2020-07-06 13:33:17 -0700 | [diff] [blame] | 40 | rust_library { |
Chih-Hung Hsieh | ca5c755 | 2020-05-13 16:07:37 -0700 | [diff] [blame] | 41 | name: "libonce_cell", |
Andrew Walbran | 7391d01 | 2020-06-09 15:12:32 +0100 | [diff] [blame] | 42 | host_supported: true, |
Chih-Hung Hsieh | ca5c755 | 2020-05-13 16:07:37 -0700 | [diff] [blame] | 43 | crate_name: "once_cell", |
Jeff Vander Stoep | 467ba80 | 2021-10-20 14:59:29 +0200 | [diff] [blame] | 44 | cargo_env_compat: true, |
David LeGare | 533bf13 | 2022-03-02 16:21:26 +0000 | [diff] [blame] | 45 | cargo_pkg_version: "1.9.0", |
Chih-Hung Hsieh | ca5c755 | 2020-05-13 16:07:37 -0700 | [diff] [blame] | 46 | srcs: ["src/lib.rs"], |
| 47 | edition: "2018", |
| 48 | features: [ |
Haibo Huang | dc66c86 | 2020-11-12 06:55:59 -0800 | [diff] [blame] | 49 | "alloc", |
Chih-Hung Hsieh | ca5c755 | 2020-05-13 16:07:37 -0700 | [diff] [blame] | 50 | "default", |
Elliott Hughes | e116d73 | 2021-04-01 16:26:32 -0700 | [diff] [blame] | 51 | "race", |
Chih-Hung Hsieh | ca5c755 | 2020-05-13 16:07:37 -0700 | [diff] [blame] | 52 | "std", |
| 53 | ], |
Bernie Innocenti | c6e82f7 | 2020-12-14 23:12:28 +0900 | [diff] [blame] | 54 | apex_available: [ |
| 55 | "//apex_available:platform", |
Alan Stokes | 9c624cb | 2021-06-22 11:22:29 +0100 | [diff] [blame] | 56 | "com.android.compos", |
Bernie Innocenti | c6e82f7 | 2020-12-14 23:12:28 +0900 | [diff] [blame] | 57 | "com.android.resolv", |
Jiyong Park | 9f03d48 | 2020-12-07 15:48:49 +0900 | [diff] [blame] | 58 | "com.android.virt", |
Bernie Innocenti | c6e82f7 | 2020-12-14 23:12:28 +0900 | [diff] [blame] | 59 | ], |
| 60 | min_sdk_version: "29", |
Chih-Hung Hsieh | ca5c755 | 2020-05-13 16:07:37 -0700 | [diff] [blame] | 61 | } |
Jeff Vander Stoep | 467ba80 | 2021-10-20 14:59:29 +0200 | [diff] [blame] | 62 | |
Joel Galenson | aeca3d8 | 2021-11-29 14:04:33 -0800 | [diff] [blame] | 63 | rust_test { |
| 64 | name: "once_cell_test_src_lib", |
| 65 | host_supported: true, |
Jeff Vander Stoep | 467ba80 | 2021-10-20 14:59:29 +0200 | [diff] [blame] | 66 | crate_name: "once_cell", |
Jeff Vander Stoep | 467ba80 | 2021-10-20 14:59:29 +0200 | [diff] [blame] | 67 | cargo_env_compat: true, |
David LeGare | 533bf13 | 2022-03-02 16:21:26 +0000 | [diff] [blame] | 68 | cargo_pkg_version: "1.9.0", |
Joel Galenson | aeca3d8 | 2021-11-29 14:04:33 -0800 | [diff] [blame] | 69 | srcs: ["src/lib.rs"], |
Jeff Vander Stoep | 467ba80 | 2021-10-20 14:59:29 +0200 | [diff] [blame] | 70 | test_suites: ["general-tests"], |
| 71 | auto_gen_config: true, |
Joel Galenson | aeca3d8 | 2021-11-29 14:04:33 -0800 | [diff] [blame] | 72 | test_options: { |
| 73 | unit_test: true, |
| 74 | }, |
Jeff Vander Stoep | 467ba80 | 2021-10-20 14:59:29 +0200 | [diff] [blame] | 75 | edition: "2018", |
| 76 | features: [ |
| 77 | "alloc", |
| 78 | "default", |
| 79 | "race", |
| 80 | "std", |
| 81 | ], |
| 82 | rustlibs: [ |
| 83 | "libcrossbeam_utils", |
| 84 | "liblazy_static", |
| 85 | "libregex", |
| 86 | ], |
| 87 | } |
| 88 | |
Joel Galenson | aeca3d8 | 2021-11-29 14:04:33 -0800 | [diff] [blame] | 89 | rust_test { |
| 90 | name: "once_cell_test_tests_it", |
| 91 | host_supported: true, |
| 92 | crate_name: "it", |
| 93 | cargo_env_compat: true, |
David LeGare | 533bf13 | 2022-03-02 16:21:26 +0000 | [diff] [blame] | 94 | cargo_pkg_version: "1.9.0", |
Joel Galenson | aeca3d8 | 2021-11-29 14:04:33 -0800 | [diff] [blame] | 95 | srcs: ["tests/it.rs"], |
| 96 | test_suites: ["general-tests"], |
| 97 | auto_gen_config: true, |
Jeff Vander Stoep | 467ba80 | 2021-10-20 14:59:29 +0200 | [diff] [blame] | 98 | test_options: { |
| 99 | unit_test: true, |
| 100 | }, |
Jeff Vander Stoep | 467ba80 | 2021-10-20 14:59:29 +0200 | [diff] [blame] | 101 | edition: "2018", |
| 102 | features: [ |
| 103 | "alloc", |
| 104 | "default", |
| 105 | "race", |
| 106 | "std", |
| 107 | ], |
| 108 | rustlibs: [ |
| 109 | "libcrossbeam_utils", |
| 110 | "liblazy_static", |
| 111 | "libonce_cell", |
| 112 | "libregex", |
| 113 | ], |
| 114 | } |