1// This file is generated by cargo2android.py --run --device --tests --dependencies. 2 3package { 4 default_applicable_licenses: ["external_rust_crates_unicode-xid_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_unicode-xid_license", 28 visibility: [":__subpackages__"], 29 license_kinds: [ 30 "SPDX-license-identifier-Apache-2.0", 31 "SPDX-license-identifier-MIT", 32 ], 33 license_text: [ 34 "COPYRIGHT", 35 "LICENSE-APACHE", 36 "LICENSE-MIT", 37 ], 38} 39 40rust_library { 41 name: "libunicode_xid", 42 host_supported: true, 43 crate_name: "unicode_xid", 44 srcs: ["src/lib.rs"], 45 edition: "2015", 46 features: ["default"], 47} 48 49rust_defaults { 50 name: "unicode-xid_defaults", 51 crate_name: "unicode_xid", 52 srcs: ["src/lib.rs"], 53 test_suites: ["general-tests"], 54 auto_gen_config: true, 55 edition: "2015", 56 features: ["default"], 57} 58 59rust_test_host { 60 name: "unicode-xid_host_test_src_lib", 61 defaults: ["unicode-xid_defaults"], 62} 63 64rust_test { 65 name: "unicode-xid_device_test_src_lib", 66 defaults: ["unicode-xid_defaults"], 67} 68 69rust_defaults { 70 name: "unicode-xid_defaults_exhaustive_tests", 71 crate_name: "exhaustive_tests", 72 srcs: ["tests/exhaustive_tests.rs"], 73 test_suites: ["general-tests"], 74 auto_gen_config: true, 75 edition: "2015", 76 features: ["default"], 77 rustlibs: [ 78 "libunicode_xid", 79 ], 80} 81 82rust_test_host { 83 name: "unicode-xid_host_test_tests_exhaustive_tests", 84 defaults: ["unicode-xid_defaults_exhaustive_tests"], 85} 86 87rust_test { 88 name: "unicode-xid_device_test_tests_exhaustive_tests", 89 defaults: ["unicode-xid_defaults_exhaustive_tests"], 90} 91