blob: a13adb352977223bb79a673e732ff6f0b0d58495 [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("@platforms//host:constraints.bzl", "HOST_CONSTRAINTS")
load("//build/bazel/rules/rust:defs.bzl", "rustc_library")
package(default_applicable_licenses = ["//:license"])
rustc_library(
name = "lib",
srcs = ["src/lib.rs"],
crate_name = "target_errors",
edition = "2024",
target_compatible_with = HOST_CONSTRAINTS,
test_deps = [
"//third_party/rust_crates/vendor:regex",
],
version = "0.1.0",
visibility = ["//src/developer/ffx:__subpackages__"],
with_host_unit_tests = True,
deps = [
"//src/developer/ffx/config:lib",
"//src/developer/ffx/fidl:fuchsia.developer.ffx_rust",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/traceable_error:lib",
"//src/lib/versioning/version-history/rust/data",
"//third_party/rust_crates/vendor:thiserror",
],
)