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 4package { 5 default_applicable_licenses: ["external_rust_crates_downcast-rs_license"], 6} 7 8// Added automatically by a large-scale-change 9// 10// large-scale-change included anything that looked like it might be a license 11// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. 12// 13// Please consider removing redundant or irrelevant files from 'license_text:'. 14// See: http://go/android-license-faq 15license { 16 name: "external_rust_crates_downcast-rs_license", 17 visibility: [":__subpackages__"], 18 license_kinds: [ 19 "SPDX-license-identifier-Apache-2.0", 20 ], 21 license_text: [ 22 "LICENSE-APACHE", 23 "LICENSE-MIT", 24 ], 25} 26 27rust_defaults { 28 name: "downcast-rs_defaults", 29 crate_name: "downcast_rs", 30 srcs: ["src/lib.rs"], 31 test_suites: ["general-tests"], 32 auto_gen_config: true, 33 edition: "2015", 34 features: [ 35 "default", 36 "std", 37 ], 38} 39 40rust_test_host { 41 name: "downcast-rs_host_test_src_lib", 42 defaults: ["downcast-rs_defaults"], 43 test_options: { 44 unit_test: true, 45 }, 46} 47 48rust_test { 49 name: "downcast-rs_device_test_src_lib", 50 defaults: ["downcast-rs_defaults"], 51} 52 53rust_defaults { 54 name: "downcast-rs_defaults_downcast_rs", 55 crate_name: "downcast_rs", 56 test_suites: ["general-tests"], 57 auto_gen_config: true, 58 edition: "2015", 59 features: [ 60 "default", 61 "std", 62 ], 63 rustlibs: [ 64 "libdowncast_rs", 65 ], 66} 67 68rust_test_host { 69 name: "downcast-rs_host_test_tests_import_via_macro_use", 70 defaults: ["downcast-rs_defaults_downcast_rs"], 71 srcs: ["tests/import_via_macro_use.rs"], 72 test_options: { 73 unit_test: true, 74 }, 75} 76 77rust_test { 78 name: "downcast-rs_device_test_tests_import_via_macro_use", 79 defaults: ["downcast-rs_defaults_downcast_rs"], 80 srcs: ["tests/import_via_macro_use.rs"], 81} 82 83rust_test_host { 84 name: "downcast-rs_host_test_tests_use_via_namespace", 85 defaults: ["downcast-rs_defaults_downcast_rs"], 86 srcs: ["tests/use_via_namespace.rs"], 87 test_options: { 88 unit_test: true, 89 }, 90} 91 92rust_test { 93 name: "downcast-rs_device_test_tests_use_via_namespace", 94 defaults: ["downcast-rs_defaults_downcast_rs"], 95 srcs: ["tests/use_via_namespace.rs"], 96} 97 98rust_library { 99 name: "libdowncast_rs", 100 host_supported: true, 101 crate_name: "downcast_rs", 102 srcs: ["src/lib.rs"], 103 edition: "2015", 104 features: [ 105 "default", 106 "std", 107 ], 108 apex_available: [ 109 "//apex_available:platform", 110 "com.android.virt", 111 ], 112} 113