| # Copyright 2020 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/host.gni") |
| import("//build/rust/rustc_binary.gni") |
| |
| rustc_binary("component_id_index") { |
| name = "component_id_index" |
| |
| deps = [ |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:rand", |
| "//third_party/rust_crates:serde", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:serde_json5", |
| "//third_party/rust_crates:structopt", |
| "//third_party/rust_crates:tempfile", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| test_deps = [ "//third_party/rust_crates:proptest" ] |
| |
| with_unit_tests = true |
| edition = "2018" |
| |
| sources = [ |
| "src/index.rs", |
| "src/main.rs", |
| ] |
| } |
| |
| install_host_tools("install") { |
| deps = [ ":component_id_index" ] |
| |
| outputs = [ "component_id_index" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| |
| deps = [ ":component_id_index_test($host_toolchain)" ] |
| } |