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_webpki_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// See: http://go/android-license-faq 22license { 23 name: "external_rust_crates_webpki_license", 24 visibility: [":__subpackages__"], 25 license_kinds: [ 26 "SPDX-license-identifier-BSD", 27 "SPDX-license-identifier-ISC", 28 ], 29 license_text: [ 30 "LICENSE", 31 ], 32} 33 34rust_library { 35 name: "libwebpki", 36 host_supported: true, 37 crate_name: "webpki", 38 cargo_env_compat: true, 39 cargo_pkg_version: "0.22.0", 40 srcs: ["src/lib.rs"], 41 edition: "2018", 42 features: [ 43 "alloc", 44 "std", 45 ], 46 rustlibs: [ 47 "libring", 48 "libuntrusted", 49 ], 50 apex_available: [ 51 "//apex_available:platform", 52 "//apex_available:anyapex", 53 ], 54} 55 56rust_test { 57 name: "webpki_test_src_lib", 58 host_supported: true, 59 crate_name: "webpki", 60 cargo_env_compat: true, 61 cargo_pkg_version: "0.22.0", 62 srcs: ["src/lib.rs"], 63 test_suites: ["general-tests"], 64 auto_gen_config: true, 65 test_options: { 66 unit_test: true, 67 }, 68 edition: "2018", 69 features: [ 70 "alloc", 71 "std", 72 ], 73 rustlibs: [ 74 "libbase64_rust", 75 "libring", 76 "libuntrusted", 77 ], 78} 79 80rust_defaults { 81 name: "webpki_test_defaults", 82 crate_name: "webpki", 83 cargo_env_compat: true, 84 cargo_pkg_version: "0.22.0", 85 test_suites: ["general-tests"], 86 auto_gen_config: true, 87 edition: "2018", 88 features: [ 89 "alloc", 90 "std", 91 ], 92 rustlibs: [ 93 "libbase64_rust", 94 "libring", 95 "libuntrusted", 96 "libwebpki", 97 ], 98} 99 100rust_test { 101 name: "webpki_test_tests_dns_name_tests", 102 defaults: ["webpki_test_defaults"], 103 host_supported: true, 104 srcs: ["tests/dns_name_tests.rs"], 105 test_options: { 106 unit_test: true, 107 }, 108} 109 110rust_test { 111 name: "webpki_test_tests_integration", 112 defaults: ["webpki_test_defaults"], 113 host_supported: true, 114 srcs: ["tests/integration.rs"], 115 test_options: { 116 unit_test: true, 117 }, 118} 119