| # Copyright 2023 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("host-log-streamer") { | |
| version = "0.1.0" | |
| edition = "2021" | |
| with_unit_tests = true | |
| deps = [ | |
| "//src/lib/diagnostics/data/rust", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/zircon/rust:fuchsia-zircon", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:async-trait", | |
| "//third_party/rust_crates:futures-util", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:thiserror", | |
| ] | |
| test_deps = [ | |
| "//src/lib/fuchsia", | |
| "//third_party/rust_crates:assert_matches", | |
| ] | |
| sources = [ "src/lib.rs" ] | |
| } | |
| fuchsia_unittest_package("host-log-streamer-test-package") { | |
| deps = [ ":host-log-streamer_test" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":host-log-streamer-test-package" ] | |
| } |