blob: ebc185d867874c9ec0d6190770f97a56e6400ebb [file] [log] [blame]
Alice Wang4ac9c8b2023-12-05 16:23:14 +00001// Copyright 2023, 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: ["Android-Apache-2.0"],
17}
18
19rust_defaults {
20 name: "libservice_vm_fake_chain_defaults",
21 crate_name: "service_vm_fake_chain",
22 defaults: ["avf_build_flags_rust"],
23 srcs: ["src/lib.rs"],
24 visibility: [
25 "//packages/modules/Virtualization/rialto:__subpackages__",
26 ],
27 rustlibs: [
28 "libcstr",
29 ],
30}
31
32rust_library {
33 name: "libservice_vm_fake_chain",
34 defaults: ["libservice_vm_fake_chain_defaults"],
35 features: [
36 "std",
37 ],
38 rustlibs: [
39 "libciborium",
40 "libcoset",
41 "libdiced_open_dice",
42 "liblog_rust",
Alice Wang4ac9c8b2023-12-05 16:23:14 +000043 ],
44}
45
46rust_library_rlib {
47 name: "libservice_vm_fake_chain_nostd",
48 defaults: ["libservice_vm_fake_chain_defaults"],
49 rustlibs: [
50 "libciborium_nostd",
51 "libcoset_nostd",
52 "libdiced_open_dice_nostd",
53 "liblog_rust_nostd",
54 ],
55
56}