blob: 2990f97fd9ebcac77eb86655a6f8f9c6d7f6d491 [file] [log] [blame]
# 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("log-command") {
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_rust",
"//sdk/rust/zx-types",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/lib/writer:lib",
"//src/lib/diagnostics/data/rust",
"//src/lib/diagnostics/selectors",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/sys/lib/component_debug",
"//src/sys/lib/moniker",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:argh",
"//third_party/rust_crates:async-stream",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:chrono-english",
"//third_party/rust_crates:futures-util",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"//sdk/rust/zx",
"//src/lib/fuchsia",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:futures",
]
sources = [
"src/filter.rs",
"src/lib.rs",
"src/log_formatter.rs",
"src/log_socket_stream.rs",
]
configs += [ "//build/config/rust/lints:clippy_warn_all" ]
}
fuchsia_unittest_package("log-command-test") {
deps = [ ":log-command_test" ]
}
group("tests") {
testonly = true
deps = [ ":log-command-test" ]
}