| # 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/rust/rustc_binary.gni") |
| import("//src/sys/build/components.gni") |
| |
| rustc_binary("bin") { |
| name = "logging_component" |
| source_root = "logging_component.rs" |
| edition = "2018" |
| |
| deps = [ |
| "//src/lib/syslog/rust:syslog", |
| "//third_party/rust_crates:log", |
| ] |
| |
| sources = [ "logging_component.rs" ] |
| } |
| |
| fuchsia_component("logging_component") { |
| testonly = true |
| manifest = "logging_component.cmx" |
| deps = [ ":bin" ] |
| } |