blob: 72ef81e04b2b178eadd23611678ddf19cd042cab [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")
rustc_library("lib") {
name = "errors"
version = "0.1.0"
edition = "2021"
with_unit_tests = true
sources = [ "src/lib.rs" ]
deps = [
"//sdk/fidl/fuchsia.developer.ffx:fuchsia.developer.ffx_rust",
"//src/lib/versioning/version-history/rust:version-history",
"//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",
]
}