1// This file is generated by cargo2android.py --config cargo2android.json. 2// Do not modify this file as changes will be overridden on upgrade. 3// TODO(victorhsieh): Add --test. The test in the current version depends on an older rand crate 4// (pre 0.8) to compile due to several API changes. However, Android's rand is already newer. 5 6package { 7 default_applicable_licenses: [ 8 "external_rust_crates_intrusive-collections_license", 9 ], 10} 11 12// Added automatically by a large-scale-change that took the approach of 13// 'apply every license found to every target'. While this makes sure we respect 14// every license restriction, it may not be entirely correct. 15// 16// e.g. GPL in an MIT project might only apply to the contrib/ directory. 17// 18// Please consider splitting the single license below into multiple licenses, 19// taking care not to lose any license_kind information, and overriding the 20// default license using the 'licenses: [...]' property on targets as needed. 21// 22// For unused files, consider creating a 'fileGroup' with "//visibility:private" 23// to attach the license to, and including a comment whether the files may be 24// used in the current project. 25// 26// large-scale-change included anything that looked like it might be a license 27// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. 28// 29// Please consider removing redundant or irrelevant files from 'license_text:'. 30// See: http://go/android-license-faq 31license { 32 name: "external_rust_crates_intrusive-collections_license", 33 visibility: [":__subpackages__"], 34 license_kinds: [ 35 "SPDX-license-identifier-Apache-2.0", 36 "SPDX-license-identifier-MIT", 37 ], 38 license_text: [ 39 "LICENSE-APACHE", 40 "LICENSE-MIT", 41 ], 42} 43 44rust_library { 45 name: "libintrusive_collections", 46 // has rustc warnings 47 host_supported: true, 48 crate_name: "intrusive_collections", 49 srcs: ["src/lib.rs"], 50 edition: "2018", 51 features: [ 52 "alloc", 53 "default", 54 ], 55 rustlibs: [ 56 "libmemoffset", 57 ], 58 apex_available: [ 59 "//apex_available:platform", 60 "com.android.virt", 61 ], 62} 63 64// dependent_library ["feature_list"] 65// autocfg-1.0.1 66// memoffset-0.5.6 "default" 67