blob: 0a08951d8a1f2361baf08f010069a7bcfd031f0e [file] [log] [blame]
# Copyright 2018 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")
rustc_binary("bin") {
name = "stash_ctl"
with_unit_tests = true
edition = "2021"
deps = [
"//build/validate:non_production_tag",
"//sdk/fidl/fuchsia.mem:fuchsia.mem_rust",
"//sdk/fidl/fuchsia.stash:fuchsia.stash_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
sources = [ "src/main.rs" ]
}
fuchsia_unittest_package("stash_ctl_tests") {
deps = [ ":bin_test" ]
}
fuchsia_shell_package("stash_ctl") {
deps = [ ":bin" ]
}
group("tests") {
testonly = true
public_deps = [ ":stash_ctl_tests" ]
}