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", |
| 16 | ], |
| 17 | } |
| 18 | |
| 19 | rust_library { |
| 20 | name: "libdice_policy", |
| 21 | defaults: ["libdice_policy.defaults"], |
| 22 | } |
| 23 | |
| 24 | rust_test { |
| 25 | name: "libdice_policy.test", |
| 26 | defaults: [ |
| 27 | "libdice_policy.defaults", |
| 28 | "rdroidtest.defaults", |
| 29 | ], |
| 30 | test_suites: ["general-tests"], |
| 31 | rustlibs: [ |
| 32 | "librustutils", |
| 33 | "libscopeguard", |
| 34 | ], |
| 35 | } |