| # 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/go/toolchain.gni") |
| import("//build/rust/rustc_binary.gni") |
| |
| rustc_binary("bin") { |
| output_name = "rust-impl" |
| output_dir = target_out_dir |
| edition = "2021" |
| source_root = "main.rs" |
| |
| deps = [ |
| "//src/lib/fuchsia-async", |
| "//src/lib/fuchsia-component", |
| "//src/tests/fidl/compatibility/fidl:fidl_import_rust", |
| "//src/tests/fidl/compatibility/fidl:fidl_service_rust", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| ] |
| |
| sources = [ "main.rs" ] |
| } |
| |
| fuchsia_component("rust-impl") { |
| manifest = "meta/rust-impl.cml" |
| deps = [ ":bin" ] |
| } |