blob: 73422b17f356ba2f1f3ce02182a108d8e69a371d [file] [log] [blame]
# 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/rust/rustc_binary.gni")
fuchsia_component_manifest("manifest") {
component_name = "client"
manifest = "//examples/fidl/new/canvas/client_requested_draw/meta/client.cml"
}
fuchsia_structured_config_rust_lib("config") {
cm_label = ":manifest"
}
rustc_binary("bin") {
output_name = "client_bin"
output_dir = target_out_dir + "/rust"
edition = "2021"
sources = [ "src/main.rs" ]
source_root = "src/main.rs"
deps = [
":config",
"//examples/fidl/new/canvas/client_requested_draw/fidl:examples.canvas.clientrequesteddraw_rust",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
}