| # 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/rust/rustc_binary.gni") | |
| import("//src/sys/build/components.gni") | |
| rustc_binary("bin") { | |
| name = "stash_ctl" | |
| with_unit_tests = true | |
| edition = "2018" | |
| deps = [ | |
| "//sdk/fidl/fuchsia.mem:fuchsia.mem-rustc", | |
| "//sdk/fidl/fuchsia.stash:fuchsia.stash-rustc", | |
| "//src/lib/fdio/rust:fdio", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/fuchsia-component", | |
| "//src/lib/syslog/rust:syslog", | |
| "//src/lib/zircon/rust:fuchsia-zircon", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:bytes", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:parking_lot", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:tempfile", | |
| "//third_party/rust_crates:thiserror", | |
| ] | |
| sources = [ "src/main.rs" ] | |
| } | |
| fuchsia_shell_package("stash_ctl") { | |
| deps = [ ":bin" ] | |
| manifest = "meta/stash_ctl.cmx" | |
| } | |
| fuchsia_unittest_package("stash_ctl_bin_test") { | |
| manifest = "meta/stash_ctl_bin_test.cmx" | |
| deps = [ ":bin_test" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| public_deps = [ ":stash_ctl_bin_test" ] | |
| } |