1// Copyright 2022, The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["system_keymint_license"], 17} 18 19rust_library_host { 20 name: "libkmr_ta", 21 crate_name: "kmr_ta", 22 srcs: ["src/lib.rs"], 23 edition: "2021", 24 lints: "vendor", 25 vendor_available: true, 26 rustlibs: [ 27 "libciborium", 28 "libciborium_io", 29 "libcoset", 30 "libder", 31 "libflagset", 32 "libkmr_common", 33 "libkmr_wire", 34 "liblog_rust", 35 "libspki", 36 "libx509_cert" 37 ], 38 proc_macros: [ 39 "libkmr_derive", 40 ], 41} 42 43rust_test_host { 44 name: "libkmr_ta_test", 45 crate_name: "kmr_ta_test", 46 srcs: ["src/lib.rs"], 47 edition: "2021", 48 rustlibs: [ 49 "libciborium", 50 "libciborium_io", 51 "libder", 52 "libflagset", 53 "libhex", 54 "libkmr_common", 55 "libkmr_wire", 56 "liblog_rust", 57 "libspki", 58 "libx509_cert" 59 ], 60 proc_macros: [ 61 "libkmr_derive", 62 ], 63 test_suites: ["general-tests"], 64} 65