| # Copyright 2025 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 = "ffx_diagnostics" |
| edition = "2021" |
| with_unit_tests = true |
| deps = [ |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:schemars", |
| "//third_party/rust_crates:serde", |
| ] |
| test_deps = [ "//src/lib/fuchsia" ] |
| sources = [ |
| "src/check.rs", |
| "src/check_ext.rs", |
| "src/lib.rs", |
| ] |
| } |
| |
| group("diagnostics") { |
| public_deps = [ ":lib" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":lib_test", |
| "checks:lib_test", |
| ] |
| } |