| # 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_binary.gni") |
| |
| rustc_binary("bin") { |
| name = "logging_component" |
| source_root = "logging_component.rs" |
| edition = "2021" |
| |
| deps = [ |
| "//src/lib/diagnostics/log/rust", |
| "//src/lib/fuchsia", |
| "//third_party/rust_crates:tracing", |
| ] |
| |
| sources = [ "logging_component.rs" ] |
| } |
| |
| fuchsia_component("logging-component") { |
| component_name = "logging_component" |
| testonly = true |
| manifest = "logging_component.cmx" |
| deps = [ ":bin" ] |
| } |