blob: 662d1a85c7edf4e5200ab789b63c1839406a5d30 [file] [log] [blame]
# Copyright 2019 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("//build/rust/rustc_library.gni")
rustc_binary("advanced_routing_reporter_bin") {
name = "advanced_routing_reporter"
edition = "2018"
source_root = "advanced_routing/reporter.rs"
deps = [
":hub_report_lib",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:anyhow",
]
}
rustc_binary("used_service_reporter_bin") {
name = "used_service_reporter"
edition = "2018"
source_root = "used_service/reporter.rs"
deps = [
":hub_report_lib",
"//examples/components/routing/fidl:echo-rustc",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/component_manager/tests:test_utils_lib",
"//third_party/rust_crates:anyhow",
]
}
rustc_binary("simple_component_bin") {
name = "simple"
edition = "2018"
source_root = "simple_component/main.rs"
deps = [ "//third_party/rust_crates:anyhow" ]
}
rustc_binary("dynamic_child_reporter_bin") {
name = "dynamic_child_reporter"
edition = "2018"
source_root = "dynamic_child/reporter.rs"
deps = [
":hub_report_lib",
"//garnet/lib/rust/files_async",
"//garnet/lib/rust/io_util",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/component_manager/tests:test_utils_lib",
"//src/sys/component_manager/tests/fidl:events-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//zircon/system/fidl/fuchsia-io:fuchsia-io-rustc",
]
}
rustc_binary("visibility_reporter_bin") {
name = "visibility_reporter"
edition = "2018"
source_root = "visibility/reporter.rs"
deps = [
":hub_report_lib",
"//garnet/lib/rust/files_async",
"//garnet/lib/rust/io_util",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//zircon/system/fidl/fuchsia-io:fuchsia-io-rustc",
]
}
rustc_library("hub_report_lib") {
name = "hub_report"
edition = "2018"
source_root = "hub_report.rs"
deps = [
"//garnet/lib/rust/files_async",
"//garnet/lib/rust/io_util",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/component_manager/tests/fidl:hub-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//zircon/system/fidl/fuchsia-io:fuchsia-io-rustc",
]
}