blob: 97ce65867597fb1ea7dd8ddf6e0628c739a6024d [file]
# 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/rust/rustc_binary.gni")
rustc_binary("interpose_echo_looper_bin") {
name = "interpose_echo_looper"
edition = "2018"
source_root = "interpose/echo_looper.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:log",
]
sources = [ "interpose/echo_looper.rs" ]
}
rustc_binary("trigger_server_bin") {
name = "static_event_stream_trigger_server"
edition = "2018"
source_root = "static_event_stream/trigger_server.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/sys/component_manager/testing:test_utils_lib",
"//src/sys/component_manager/tests/fidl:components-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
sources = [ "static_event_stream/trigger_server.rs" ]
}
rustc_binary("trigger_client_bin") {
name = "static_event_stream_trigger_client"
edition = "2018"
source_root = "static_event_stream/trigger_client.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/component_manager/tests/fidl:components-rustc",
]
sources = [ "static_event_stream/trigger_client.rs" ]
}
rustc_binary("echo_reporter_bin") {
name = "scoped_echo_reporter"
edition = "2018"
source_root = "scoped/echo_reporter.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/sys/component_manager/testing:test_utils_lib",
"//src/sys/component_manager/tests/fidl:components-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
sources = [ "scoped/echo_reporter.rs" ]
}
rustc_binary("chained_interpose_echo_client_bin") {
name = "chained_interpose_echo_client"
edition = "2018"
source_root = "chained_interpose/echo_client.rs"
deps = [
"//examples/components/routing/fidl:echo-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:echofactory-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
sources = [ "chained_interpose/echo_client.rs" ]
}
rustc_binary("chained_interpose_echo_factory_bin") {
name = "chained_interpose_echo_factory"
edition = "2018"
source_root = "chained_interpose/echo_factory.rs"
deps = [
"//examples/components/routing/fidl:echo-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 = [ "chained_interpose/echo_factory.rs" ]
}
rustc_binary("nested_reporter_bin") {
name = "nested_reporter"
edition = "2018"
source_root = "nested/reporter.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//src/sys/component_manager/testing:test_utils_lib",
"//src/sys/component_manager/tests/fidl:echofactory-rustc",
"//third_party/rust_crates:anyhow",
]
sources = [ "nested/reporter.rs" ]
}
rustc_binary("resolved_error_reporter_bin") {
name = "resolved_error_reporter"
edition = "2018"
source_root = "resolved_error/reporter.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//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/lib/syslog/rust:syslog",
"//src/sys/component_manager/testing:test_utils_lib",
"//src/sys/component_manager/tests/fidl:components-rustc",
"//src/sys/component_manager/tests/fidl:echofactory-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:matches",
]
sources = [ "resolved_error/reporter.rs" ]
}
rustc_binary("async_reporter_bin") {
name = "async_reporter"
edition = "2018"
source_root = "async/reporter.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//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/lib/syslog/rust:syslog",
"//src/sys/component_manager/testing:test_utils_lib",
"//src/sys/component_manager/tests/fidl:echofactory-rustc",
"//third_party/rust_crates:anyhow",
]
sources = [ "async/reporter.rs" ]
}
rustc_binary("echo_client_for_events_bin") {
name = "scoped_echo_client"
edition = "2018"
source_root = "scoped/echo_client.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//src/sys/component_manager/tests/fidl:components-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
]
sources = [ "scoped/echo_client.rs" ]
}
rustc_binary("echo_server_for_events_bin") {
name = "scoped_echo_server"
edition = "2018"
source_root = "scoped/echo_server.rs"
deps = [
"//examples/components/routing/fidl:echo-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 = [ "scoped/echo_server.rs" ]
}
rustc_binary("stub_component_bin") {
name = "stub_component"
edition = "2018"
source_root = "stub/component.rs"
deps = [
"//src/lib/fuchsia-async",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
]
sources = [ "stub/component.rs" ]
}
rustc_binary("realm_offered_nested") {
name = "realm_offered_nested"
edition = "2018"
source_root = "realm_offered/nested.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//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",
"//src/sys/component_manager/tests/fidl:components-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
sources = [ "realm_offered/nested.rs" ]
}
rustc_binary("realm_offered_bin") {
name = "realm_offered_reporter"
edition = "2018"
source_root = "realm_offered/reporter.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/component_manager/testing:test_utils_lib",
"//src/sys/component_manager/tests/fidl:components-rustc",
"//third_party/rust_crates:anyhow",
]
sources = [ "realm_offered/reporter.rs" ]
}
rustc_binary("capability_ready_root_bin") {
name = "capability_ready_root"
edition = "2018"
source_root = "capability_ready/root.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//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",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/sys/component_manager/testing:test_utils_lib",
"//src/sys/component_manager/tests/fidl:components-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:maplit",
"//third_party/rust_crates:matches",
]
sources = [ "capability_ready/root.rs" ]
}
rustc_binary("capability_ready_child_bin") {
name = "capability_ready_child"
edition = "2018"
source_root = "capability_ready/child.rs"
deps = [
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/component_manager/testing:test_utils_lib",
"//src/sys/component_manager/tests/fidl:components-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
sources = [ "capability_ready/child.rs" ]
}
rustc_binary("synthesis_reporter_bin") {
name = "synthesis_reporter"
edition = "2018"
source_root = "synthesis/reporter.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//src/sys/component_manager/testing:test_utils_lib",
"//src/sys/component_manager/tests/fidl:echofactory-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:log",
"//third_party/rust_crates:regex",
]
sources = [ "synthesis/reporter.rs" ]
}
rustc_binary("file_contents_reporter_bin") {
name = "file_contents_reporter"
edition = "2018"
source_root = "dir_capability_routed/reporter.rs"
deps = [
"//examples/components/routing/fidl:echo-rustc",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
]
sources = [ "dir_capability_routed/reporter.rs" ]
}