blob: 886c1552d206466e7ab277f5a2d5c4f3a977848e [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/rust/rustc_library.gni")
rustc_library("lib") {
name = "ffx_command"
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//src/connectivity/overnet/lib/hoist",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/daemon/proxy:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/metrics:lib",
"//src/developer/ffx/lib/target:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/lib/analytics/rust:lib",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:itertools",
"//third_party/rust_crates:simplelog",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:tracing",
]
test_deps = [
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:tempfile",
]
sources = [
"src/describe.rs",
"src/error.rs",
"src/ffx.rs",
"src/lib.rs",
"src/tools.rs",
]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}