blob: 2382b527c47539a00d2ed4a4c5138d5a750d4d83 [file] [log] [blame]
# Copyright 2021 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")
group("tests") {
testonly = true
deps = [ ":component_manager_logger_test" ]
}
rustc_library("logger") {
edition = "2021"
name = "cm_logger"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.logger:fuchsia.logger-rustc",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-fs",
"//src/lib/syslog/rust:syslog",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:log",
]
test_deps = [
"//sdk/fidl/fuchsia.boot:fuchsia.boot-rustc",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:rand",
]
sources = [
"src/fmt.rs",
"src/klog.rs",
"src/lib.rs",
"src/scoped.rs",
]
}
fuchsia_unittest_package("component_manager_logger_test") {
manifest = "meta/component_manager_logger_test.cml"
deps = [ ":logger_test" ]
}