Janis Danisevskis | c51dff8 | 2021-10-20 09:51:16 -0700 | [diff] [blame] | 1 | // Copyright 2021, The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "system_security_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["system_security_license"], |
| 22 | } |
| 23 | |
| 24 | rust_library { |
| 25 | name: "libdiced_utils", |
| 26 | crate_name: "diced_utils", |
| 27 | srcs: ["src/utils.rs"], |
Janis Danisevskis | aaba4af | 2021-11-18 14:25:07 -0800 | [diff] [blame] | 28 | vendor_available: true, |
Janis Danisevskis | c51dff8 | 2021-10-20 09:51:16 -0700 | [diff] [blame] | 29 | |
| 30 | rustlibs: [ |
Janis Danisevskis | c51dff8 | 2021-10-20 09:51:16 -0700 | [diff] [blame] | 31 | "libanyhow", |
Janis Danisevskis | c51dff8 | 2021-10-20 09:51:16 -0700 | [diff] [blame] | 32 | ], |
| 33 | } |
| 34 | |
| 35 | rust_test { |
| 36 | name: "diced_utils_test", |
| 37 | crate_name: "diced_utils_test", |
| 38 | srcs: ["src/utils.rs"], |
| 39 | test_suites: ["general-tests"], |
| 40 | auto_gen_config: true, |
| 41 | rustlibs: [ |
Janis Danisevskis | c51dff8 | 2021-10-20 09:51:16 -0700 | [diff] [blame] | 42 | "libanyhow", |
Janis Danisevskis | c51dff8 | 2021-10-20 09:51:16 -0700 | [diff] [blame] | 43 | ], |
| 44 | } |
| 45 | |
| 46 | rust_library { |
| 47 | name: "libdiced_sample_inputs", |
| 48 | crate_name: "diced_sample_inputs", |
| 49 | srcs: ["src/sample_inputs.rs"], |
Janis Danisevskis | aaba4af | 2021-11-18 14:25:07 -0800 | [diff] [blame] | 50 | vendor_available: true, |
Janis Danisevskis | c51dff8 | 2021-10-20 09:51:16 -0700 | [diff] [blame] | 51 | |
| 52 | rustlibs: [ |
Janis Danisevskis | c51dff8 | 2021-10-20 09:51:16 -0700 | [diff] [blame] | 53 | "libanyhow", |
Alice Wang | 4d3059a | 2023-02-15 10:24:33 +0000 | [diff] [blame] | 54 | "libdiced_open_dice", |
Janis Danisevskis | c51dff8 | 2021-10-20 09:51:16 -0700 | [diff] [blame] | 55 | "libdiced_utils", |
Janis Danisevskis | c51dff8 | 2021-10-20 09:51:16 -0700 | [diff] [blame] | 56 | ], |
| 57 | } |
| 58 | |
| 59 | rust_test { |
| 60 | name: "diced_sample_inputs_test", |
| 61 | crate_name: "diced_sample_inputs_test", |
| 62 | srcs: ["src/sample_inputs.rs"], |
| 63 | test_suites: ["general-tests"], |
| 64 | auto_gen_config: true, |
| 65 | rustlibs: [ |
Janis Danisevskis | c51dff8 | 2021-10-20 09:51:16 -0700 | [diff] [blame] | 66 | "libanyhow", |
Alice Wang | 4d3059a | 2023-02-15 10:24:33 +0000 | [diff] [blame] | 67 | "libdiced_open_dice", |
Janis Danisevskis | c51dff8 | 2021-10-20 09:51:16 -0700 | [diff] [blame] | 68 | "libdiced_utils", |
Janis Danisevskis | c51dff8 | 2021-10-20 09:51:16 -0700 | [diff] [blame] | 69 | ], |
| 70 | } |