| # 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/rust/rustc_binary.gni") |
| import("//src/sys/build/components.gni") |
| |
| rustc_binary("bin") { |
| name = "virtual_device_directory" |
| edition = "2018" |
| deps = [ "//third_party/rust_crates:anyhow" ] |
| |
| sources = [ "src/main.rs" ] |
| |
| configs -= [ "//build/config/rust:allow_unused_results" ] |
| } |
| |
| fuchsia_component("virtual_device_directory") { |
| component_name = "virtual-device-directory" |
| manifest = "meta/virtual-device-directory.cmx" |
| testonly = true |
| deps = [ ":bin" ] |
| } |