blob: a4b7b45438c307b0e3be393f5671a5188a27c95c [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/testing/environments.gni")
rustc_binary("bin") {
name = "kms"
edition = "2018"
with_unit_tests = true
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/mundane:mundane",
"//sdk/fidl/fuchsia.kms:fuchsia.kms-rustc",
"//third_party/boringssl/rust/boringssl-sys",
"//third_party/rust_crates:base64",
"//third_party/rust_crates:bytes",
"//third_party/rust_crates:failure",
"//third_party/rust_crates:futures-preview",
"//third_party/rust_crates:libc",
"//third_party/rust_crates:log",
"//third_party/rust_crates:rand",
"//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",
]
non_rust_deps = [ "//zircon/public/lib/tee-client-api" ]
}
package("kms") {
deps = [
":bin",
]
binary = "kms"
meta = [
{
path = rebase_path("meta/key_manager.cmx")
dest = "key_manager.cmx"
},
]
}
package("kms_tests") {
testonly = true
deps = [
":bin",
]
tests = [
{
name = "kms_bin_test"
dest = "kms_bin_test"
environments = basic_envs
},
]
}