blob: d23b6192b519637d249bfcd9c44ed1d191689080 [file] [log] [blame]
# Copyright 2022 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/fidl/fidl.gni")
import("//build/host.gni")
import("//build/rust/rustc_binary.gni")
import("//build/rust/rustc_test.gni")
rustc_binary("bin") {
testonly = true
name = "structured_config_rust_receiver"
sources = [ "src/main.rs" ]
deps = [
":config_lib",
"//src/lib/diagnostics/inspect/runtime/rust",
"//src/lib/diagnostics/inspect/rust",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//src/sys/component_manager/tests/structured_config/fidl:test.structuredconfig.receiver-rustc",
"//third_party/rust_crates:futures",
]
}
fuchsia_component_manifest("manifest") {
testonly = true
component_name = "rust_receiver"
manifest = "meta/receiver.cml"
restricted_features = [ "structured_config" ]
}
fuchsia_structured_config_rust_lib("config_lib") {
testonly = true
name = "receiver_config"
cm_label = ":manifest"
}
fuchsia_component("component") {
testonly = true
cm_label = ":manifest"
deps = [ ":bin" ]
}
fuchsia_structured_config_values("values") {
testonly = true
cm_label = ":manifest"
values_source = "../config/values.json5"
}
group("rust") {
testonly = true
deps = [
":component",
":values",
]
}