blob: 8eea3a648e32eec2949a9d42bfc604c3902dbc8b [file] [log] [blame] [edit]
# Copyright 2022 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") {
name = "accountctl"
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.identity.account:fuchsia.identity.account_rust",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//src/sys/lib/component_debug",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
]
test_deps = [
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:futures",
]
sources = [
"src/args.rs",
"src/main.rs",
]
}
fuchsia_shell_package("accountctl") {
deps = [ ":bin" ]
}