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} 51 52rust_test { 53 name: "webpki_test_src_lib", 54 host_supported: true, 55 crate_name: "webpki", 56 cargo_env_compat: true, 57 cargo_pkg_version: "0.22.0", 58 srcs: ["src/lib.rs"], 59 test_suites: ["general-tests"], 60 auto_gen_config: true, 61 test_options: { 62 unit_test: true, 63 }, 64 edition: "2018", 65 features: [ 66 "alloc", 67 "std", 68 ], 69 rustlibs: [ 70 "libbase64_rust", 71 "libring", 72 "libuntrusted", 73 ], 74} 75 76rust_defaults { 77 name: "webpki_test_defaults", 78 crate_name: "webpki", 79 cargo_env_compat: true, 80 cargo_pkg_version: "0.22.0", 81 test_suites: ["general-tests"], 82 auto_gen_config: true, 83 edition: "2018", 84 features: [ 85 "alloc", 86 "std", 87 ], 88 rustlibs: [ 89 "libbase64_rust", 90 "libring", 91 "libuntrusted", 92 "libwebpki", 93 ], 94} 95 96rust_test { 97 name: "webpki_test_tests_dns_name_tests", 98 defaults: ["webpki_test_defaults"], 99 host_supported: true, 100 srcs: ["tests/dns_name_tests.rs"], 101 test_options: { 102 unit_test: true, 103 }, 104} 105 106rust_test { 107 name: "webpki_test_tests_integration", 108 defaults: ["webpki_test_defaults"], 109 host_supported: true, 110 srcs: ["tests/integration.rs"], 111 test_options: { 112 unit_test: true, 113 }, 114} 115