| # 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", |
| ] |
| |
| sources = [ "advanced_routing/reporter.rs" ] |
| } |
| |
| rustc_binary("simple_component_bin") { |
| name = "simple" |
| edition = "2018" |
| source_root = "simple_component/main.rs" |
| deps = [ |
| "//src/lib/fuchsia-async", |
| "//src/lib/syslog/rust:syslog", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:log", |
| ] |
| |
| sources = [ "simple_component/main.rs" ] |
| } |
| |
| 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.io:fuchsia.io-rustc", |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/sys/component_manager/testing:test_utils_lib", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| ] |
| |
| sources = [ "dynamic_child/reporter.rs" ] |
| } |
| |
| 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", |
| "//sdk/fidl/fuchsia.io:fuchsia.io-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| ] |
| |
| sources = [ "visibility/reporter.rs" ] |
| } |
| |
| 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.io:fuchsia.io-rustc", |
| "//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", |
| ] |
| |
| sources = [ "hub_report.rs" ] |
| } |