blob: 35b5e1301be7668e234b9855db883c145d02d84b [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_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",
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",
"//third_party/rust_crates/vendor:anyhow",
"//third_party/rust_crates/vendor:argh",
"//third_party/rust_crates/vendor:thiserror",
],
)