blob: d8e03661274b67446b9daabc444e3da4377f3b85 [file] [log] [blame]
# 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("puppet") {
name = "log_validator_rust_puppet"
edition = "2024"
testonly = true
deps = [
"//sdk/fidl/fuchsia.mem:fuchsia.mem_rust",
"//sdk/rust/zx",
"//src/diagnostics/validator/logs/fidl:fuchsia.validate.logs_rust",
"//src/diagnostics/validator/logs/rust/utils",
"//src/lib/diagnostics/log/encoding/rust",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
]
sources = [ "src/main.rs" ]
configs += [ "//build/config/rust/lints:clippy_warn_all" ]
}
fuchsia_component("component") {
component_name = "puppet"
testonly = true
manifest = "meta/puppet.cml"
deps = [ ":puppet" ]
}
fuchsia_package("rust") {
testonly = true
package_name = "rust-puppet"
deps = [ ":component" ]
}