blob: b8b9a2240292be6e2fc4eddc4f9f6f485ac4245b [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")
import("//build/testing/environments.gni")
rustc_binary("bin") {
name = "stash_ctl"
with_unit_tests = true
edition = "2018"
deps = [
"//garnet/public/lib/fidl/rust/fidl",
"//garnet/public/rust/fdio",
"//garnet/public/rust/fuchsia-async",
"//garnet/public/rust/fuchsia-component",
"//garnet/public/rust/fuchsia-syslog",
"//garnet/public/rust/fuchsia-zircon",
"//sdk/fidl/fuchsia.stash:fuchsia.stash-rustc",
"//third_party/rust_crates:bytes",
"//third_party/rust_crates:failure",
"//third_party/rust_crates:futures-preview",
"//third_party/rust_crates:parking_lot",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_derive",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tempfile",
"//zircon/public/fidl/fuchsia-mem:fuchsia-mem-rustc",
]
}
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"
environments = basic_envs
},
]
}