blob: 5ff99944e696fabb45195a92f398ad297486595a [file] [log] [blame]
# Copyright 2020 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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("diagnostics-hierarchy") {
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust",
"//src/lib/diagnostics/selectors",
"//third_party/rust_crates:base64",
"//third_party/rust_crates:num-derive",
"//third_party/rust_crates:num-traits",
"//third_party/rust_crates:paste",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"//src/lib/fuchsia",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:serde_json",
]
sources = [
"src/lib.rs",
"src/macros.rs",
"src/serialization/deserialize.rs",
"src/serialization/mod.rs",
"src/serialization/serialize.rs",
]
}
fuchsia_unittest_package("diagnostics-hierarchy-test") {
deps = [ ":diagnostics-hierarchy_test" ]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
}
group("rust") {
public_deps = [ ":diagnostics-hierarchy" ]
}
group("tests") {
testonly = true
deps = [ ":diagnostics-hierarchy-test" ]
}