blob: c93bd7da35987f8dcbb73beb008259cd6aa3af08 [file] [log] [blame]
Nikita Ioffee18cc132024-02-28 16:13:36 +00001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Nikita Ioffeab035a52024-03-14 00:33:50 +00005rust_defaults {
6 name: "libdice_driver_defaults",
Nikita Ioffee18cc132024-02-28 16:13:36 +00007 crate_name: "dice_driver",
8 defaults: [
9 "avf_build_flags_rust",
10 ],
11 srcs: ["src/lib.rs"],
12 edition: "2021",
13 prefer_rlib: true,
14 rustlibs: [
15 "libanyhow",
16 "libbyteorder",
17 "libcoset",
18 "libdice_policy_builder",
19 "libdiced_open_dice",
20 "libdiced_sample_inputs",
21 "libkeystore2_crypto_rust",
22 "liblibc",
23 "liblog_rust",
24 "libnix",
25 "libonce_cell",
26 "libopenssl",
27 "libthiserror",
Nikita Ioffeab035a52024-03-14 00:33:50 +000028 "libserde_cbor",
Nikita Ioffee18cc132024-02-28 16:13:36 +000029 ],
30 multilib: {
31 lib32: {
32 enabled: false,
33 },
34 },
35}
Nikita Ioffeab035a52024-03-14 00:33:50 +000036
37rust_library {
38 name: "libdice_driver",
39 defaults: ["libdice_driver_defaults"],
40}
41
42rust_test {
43 name: "libdice_driver_test",
44 defaults: ["libdice_driver_defaults"],
45 test_suites: ["general-tests"],
46 rustlibs: [
47 "libhex",
48 "libtempfile",
49 ],
50}