| # 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_test.gni") |
| import("//src/sys/build/components.gni") |
| |
| rustc_test("echo_rust_client") { |
| edition = "2018" |
| name = "echo_rust_client" |
| source_root = "src/main.rs" |
| deps = [ |
| "//examples/components/routing/fidl:echo-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| ] |
| |
| sources = [ "src/main.rs" ] |
| } |
| |
| fuchsia_component("echo_rust_client_component") { |
| testonly = true |
| manifest = "meta/echo_rust_client.cml" |
| component_name = "echo_rust_client" |
| deps = [ ":echo_rust_client" ] |
| } |
| |
| fuchsia_component("echo-test-realm") { |
| testonly = true |
| manifest = "meta/echo-test-realm.cml" |
| } |
| |
| group("echo-example") { |
| testonly = true |
| public_deps = [ |
| ":echo-test-realm", |
| ":echo_rust_client_component", |
| "//examples/components/routing/echo_server:echo_server_component", |
| ] |
| } |