blob: b2175201660624baf3a2e1a04410f0938a02d056 [file] [log] [blame] [edit]
# 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/ffx_plugin.gni")
ffx_plugin("ffx_log") {
version = "0.1.0"
edition = "2021"
with_unit_tests = true
args_with_unit_tests = true
args_deps = [
"//sdk/fidl/fuchsia.developer.ffx:fuchsia.developer.ffx_rust",
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust",
"//src/lib/diagnostics/data/rust",
"//src/lib/diagnostics/selectors",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:chrono-english",
]
config_data = [ "data/config.json" ]
deps = [
"//sdk/fidl/fuchsia.developer.ffx:fuchsia.developer.ffx_rust",
"//sdk/fidl/fuchsia.developer.remotecontrol:fuchsia.developer.remotecontrol_rust",
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics_rust",
"//src/developer/ffx/config:lib",
"//src/developer/ffx/lib/errors:lib",
"//src/developer/ffx/lib/writer:lib",
"//src/developer/ffx/logger/data:lib",
"//src/developer/ffx/logger/frontend:lib",
"//src/lib/diagnostics/data/rust",
"//src/sys/lib/moniker",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:blocking",
"//third_party/rust_crates:chrono",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:regex",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:termion",
"//third_party/rust_crates:tracing",
]
args_sources = [ "src/args.rs" ]
sources = [
"src/lib.rs",
"src/spam_filter.rs",
]
test_deps = [
"//src/developer/ffx/logger/test_utils:lib",
"//src/lib/diagnostics/selectors",
"//src/lib/fuchsia",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:tempfile",
]
}