blob: 392ac182db3224176a895304a82f43cfc6f45dcc [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/package.gni")
import("//build/rust/rustc_binary.gni")
import("//build/test/test_package.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" ]
}
package("stash_ctl") {
deps = [ ":bin" ]
binaries = [
{
name = "stash_ctl"
path = "stash_ctl"
shell = true
},
]
meta = [
{
path = rebase_path("meta/stash_ctl.cmx")
dest = "stash_ctl.cmx"
},
]
}
test_package("stash_ctl_tests") {
deps = [ ":bin_test" ]
tests = [
{
name = "stash_ctl_bin_test"
},
]
}