blob: 9dddcd2c711c8c5c77a7ef3a416a5b25ede493cd [file] [log] [blame]
# Copyright 2019 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/components.gni")
import("//build/rust/rustc_binary.gni")
import("//build/rust/rustc_test.gni")
rustc_binary("bin") {
name = "factoryctl"
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.boot:fuchsia.boot_rust",
"//sdk/fidl/fuchsia.factory:fuchsia.factory_rust",
"//sdk/fidl/fuchsia.io:fuchsia.io_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-fs",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:nom",
"//third_party/rust_crates:structopt",
]
test_deps = [
"//src/lib/fuchsia-component-test",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/storage/lib/vfs/rust:vfs",
]
sources = [ "src/main.rs" ]
}
fuchsia_shell_package("factoryctl") {
deps = [ ":bin" ]
}
fuchsia_unittest_package("factoryctl_tests") {
deps = [ ":bin_test" ]
}