Shikha Panwar | 71b4f83 | 2023-08-21 17:43:09 +0000 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
| 5 | rust_defaults { |
| 6 | name: "libdice_policy.defaults", |
| 7 | crate_name: "dice_policy", |
| 8 | defaults: ["avf_build_flags_rust"], |
| 9 | srcs: ["src/lib.rs"], |
| 10 | edition: "2021", |
| 11 | prefer_rlib: true, |
| 12 | rustlibs: [ |
| 13 | "libanyhow", |
| 14 | "libciborium", |
| 15 | "libcoset", |
Shikha Panwar | efe261f | 2023-10-20 20:46:05 +0000 | [diff] [blame^] | 16 | "libnum_traits", |
Shikha Panwar | 71b4f83 | 2023-08-21 17:43:09 +0000 | [diff] [blame] | 17 | ], |
Shikha Panwar | efe261f | 2023-10-20 20:46:05 +0000 | [diff] [blame^] | 18 | proc_macros: ["libnum_derive"], |
Shikha Panwar | 71b4f83 | 2023-08-21 17:43:09 +0000 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | rust_library { |
| 22 | name: "libdice_policy", |
| 23 | defaults: ["libdice_policy.defaults"], |
| 24 | } |
| 25 | |
| 26 | rust_test { |
| 27 | name: "libdice_policy.test", |
| 28 | defaults: [ |
| 29 | "libdice_policy.defaults", |
| 30 | "rdroidtest.defaults", |
| 31 | ], |
| 32 | test_suites: ["general-tests"], |
| 33 | rustlibs: [ |
| 34 | "librustutils", |
| 35 | "libscopeguard", |
| 36 | ], |
| 37 | } |