blob: baed21d64fa8d19bcebd8aa163f3d09cbde7c0b5 [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",
Nikita Ioffee18cc132024-02-28 16:13:36 +000025 "libopenssl",
26 "libthiserror",
Nikita Ioffeab035a52024-03-14 00:33:50 +000027 "libserde_cbor",
Nikita Ioffee18cc132024-02-28 16:13:36 +000028 ],
29 multilib: {
30 lib32: {
31 enabled: false,
32 },
33 },
34}
Nikita Ioffeab035a52024-03-14 00:33:50 +000035
36rust_library {
37 name: "libdice_driver",
38 defaults: ["libdice_driver_defaults"],
39}
40
41rust_test {
42 name: "libdice_driver_test",
43 defaults: ["libdice_driver_defaults"],
44 test_suites: ["general-tests"],
45 rustlibs: [
46 "libhex",
47 "libtempfile",
48 ],
49}