blob: f9ab29129f8ef6b7ae11e9604a68f97a2c1bf4a0 [file] [log] [blame]
# Copyright 2021 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/components.gni")
import("//build/rust/rustc_binary.gni")
rustc_binary("bin") {
edition = "2021"
output_name = "ssh_key_manager"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.ssh:fuchsia.ssh-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:tracing",
]
sources = [
"src/keys.rs",
"src/main.rs",
"src/manager.rs",
]
}
fuchsia_package_with_single_component("ssh-key-manager") {
manifest = "meta/ssh-key-manager.cml"
deps = [ ":bin" ]
}
fuchsia_unittest_package("ssh-key-manager-unittests") {
deps = [ ":bin_test" ]
}
group("tests") {
testonly = true
deps = [ ":ssh-key-manager-unittests" ]
}