1// This file is generated by cargo2android.py --device --run --dependencies --tests. 2 3package { 4 default_applicable_licenses: ["external_rust_crates_fnv_license"], 5} 6 7// Added automatically by a large-scale-change that took the approach of 8// 'apply every license found to every target'. While this makes sure we respect 9// every license restriction, it may not be entirely correct. 10// 11// e.g. GPL in an MIT project might only apply to the contrib/ directory. 12// 13// Please consider splitting the single license below into multiple licenses, 14// taking care not to lose any license_kind information, and overriding the 15// default license using the 'licenses: [...]' property on targets as needed. 16// 17// For unused files, consider creating a 'fileGroup' with "//visibility:private" 18// to attach the license to, and including a comment whether the files may be 19// used in the current project. 20// 21// large-scale-change included anything that looked like it might be a license 22// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. 23// 24// Please consider removing redundant or irrelevant files from 'license_text:'. 25// See: http://go/android-license-faq 26license { 27 name: "external_rust_crates_fnv_license", 28 visibility: [":__subpackages__"], 29 license_kinds: [ 30 "SPDX-license-identifier-Apache-2.0", 31 "SPDX-license-identifier-MIT", 32 ], 33 license_text: [ 34 "LICENSE-APACHE", 35 "LICENSE-MIT", 36 ], 37} 38 39rust_defaults { 40 name: "fnv_defaults", 41 crate_name: "fnv", 42 srcs: ["lib.rs"], 43 test_suites: ["general-tests"], 44 auto_gen_config: true, 45 edition: "2015", 46 features: [ 47 "default", 48 "std", 49 ], 50} 51 52rust_test_host { 53 name: "fnv_host_test_lib", 54 defaults: ["fnv_defaults"], 55} 56 57rust_test { 58 name: "fnv_device_test_lib", 59 defaults: ["fnv_defaults"], 60} 61 62rust_library { 63 name: "libfnv", 64 host_supported: true, 65 crate_name: "fnv", 66 srcs: ["lib.rs"], 67 edition: "2015", 68 features: [ 69 "default", 70 "std", 71 ], 72} 73