Nikita Ioffe | e18cc13 | 2024-02-28 16:13:36 +0000 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Nikita Ioffe | ab035a5 | 2024-03-14 00:33:50 +0000 | [diff] [blame^] | 5 | rust_defaults { |
| 6 | name: "libdice_driver_defaults", |
Nikita Ioffe | e18cc13 | 2024-02-28 16:13:36 +0000 | [diff] [blame] | 7 | 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 Ioffe | ab035a5 | 2024-03-14 00:33:50 +0000 | [diff] [blame^] | 28 | "libserde_cbor", |
Nikita Ioffe | e18cc13 | 2024-02-28 16:13:36 +0000 | [diff] [blame] | 29 | ], |
| 30 | multilib: { |
| 31 | lib32: { |
| 32 | enabled: false, |
| 33 | }, |
| 34 | }, |
| 35 | } |
Nikita Ioffe | ab035a5 | 2024-03-14 00:33:50 +0000 | [diff] [blame^] | 36 | |
| 37 | rust_library { |
| 38 | name: "libdice_driver", |
| 39 | defaults: ["libdice_driver_defaults"], |
| 40 | } |
| 41 | |
| 42 | rust_test { |
| 43 | name: "libdice_driver_test", |
| 44 | defaults: ["libdice_driver_defaults"], |
| 45 | test_suites: ["general-tests"], |
| 46 | rustlibs: [ |
| 47 | "libhex", |
| 48 | "libtempfile", |
| 49 | ], |
| 50 | } |