blob: e1e305a4e2908f9f7adac1cdb5e05b7a1e400dfe [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"
with_unit_tests = true
edition = "2018"
deps = [
"//garnet/public/lib/fidl/rust/fidl",
"//garnet/public/rust/fuchsia-async",
"//garnet/public/rust/fuchsia-component",
"//garnet/public/rust/fuchsia-syslog",
"//garnet/public/rust/fuchsia-zircon",
"//garnet/public/rust/fuchsia-zircon/fuchsia-zircon-sys",
"//sdk/fidl/fuchsia.stash:fuchsia.stash-rustc",
"//third_party/rust_crates:byteorder",
"//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:tempfile",
"//zircon/system/fidl/fuchsia-mem:fuchsia-mem-rustc",
]
}
package("stash") {
deps = [
":bin",
]
binary = "stash"
meta = [
{
path = rebase_path("meta/stash.cmx")
dest = "stash.cmx"
},
{
path = rebase_path("meta/stash_secure.cmx")
dest = "stash_secure.cmx"
},
{
path = rebase_path("meta/stash_tests.cmx")
dest = "stash_tests.cmx"
},
]
}
test_package("stash_tests") {
deps = [
":bin_test",
]
tests = [
{
name = "stash_bin_test"
environments = basic_envs
},
]
}