blob: 084fad2e5d85bed677206066f016cf9f1583af79 [file] [log] [blame]
# 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")
# This is a cross toolchain lib
# used by //src/developer/lib/writer
rustc_library("lib") {
name = "ffx_command_error"
version = "0.1.0"
edition = "2024"
with_unit_tests = true
assert_no_deps = [
"//src/developer/ffx/config/*",
"//src/developer/ffx/daemon/*",
"//src/developer/ffx/frontends/*",
"//src/developer/ffx/playground/*",
"//src/developer/ffx/plugins/*",
"//src/developer/ffx/testing",
"//src/developer/ffx/tests/*",
"//src/developer/ffx/tools/*",
]
deps = [
"//src/developer/ffx/lib/errors:lib",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:thiserror",
]
test_deps = [ "//third_party/rust_crates:assert_matches" ]
sources = [
"src/context.rs",
"src/error.rs",
"src/lib.rs",
"src/macros.rs",
]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}