blob: beef8d30b937ac4c99b1de7b0078ca59b7d08c98 [file]
# Copyright 2026 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.
load("//build/bazel/rules/rust:defs.bzl", "rustc_library")
package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//visibility:public"],
)
rustc_library(
name = "lib",
srcs = [
"src/context.rs",
"src/error.rs",
"src/lib.rs",
"src/macros.rs",
],
crate_name = "ffx_command_error",
edition = "2024",
proc_macro_deps = [
"//src/developer/ffx/lib/traceable_error/derive:lib",
],
tags = [
"assert_no_deps=//src/developer/ffx/config/*",
"assert_no_deps=//src/developer/ffx/daemon/*",
"assert_no_deps=//src/developer/ffx/frontends/*",
"assert_no_deps=//src/developer/ffx/playground/*",
"assert_no_deps=//src/developer/ffx/plugins/*",
"assert_no_deps=//src/developer/ffx/testing",
"assert_no_deps=//src/developer/ffx/tests/*",
"assert_no_deps=//src/developer/ffx/tools/*",
],
test_deps = [
"//third_party/rust_crates/vendor:assert_matches",
],
version = "0.1.0",
with_host_unit_tests = True,
deps = [
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/traceable_error:lib",
"//third_party/rust_crates/vendor:anyhow",
"//third_party/rust_crates/vendor:argh",
"//third_party/rust_crates/vendor:thiserror",
],
)