blob: 1a2ac66cce4d724a606bf1e3ff0c437121fdb6c1 [file] [log] [blame] [edit]
# Copyright 2021 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 library - used by //src/developer/ffx/command/error
rustc_library("lib") {
name = "errors"
version = "0.1.0"
edition = "2024"
with_unit_tests = true
sources = [ "src/lib.rs" ]
# There should be no dependencies on FIDL or anything to do with
# communicating with target devices.
assert_no_deps = [
"//src/developer/ffx/fidl:*",
"//src/lib/fidl/rust/fidl",
]
deps = [
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:thiserror",
]
test_deps = [ "//third_party/rust_crates:assert_matches" ]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}
group("errors") {
testonly = true
deps = [
":lib",
":tests",
]
}