blob: 21fef40450747cc26988251824300d809fa6b785 [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/add_line_metered/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" ]
deps = [
":config",
"//examples/fidl/new/canvas/add_line_metered/fidl:examples.canvas.addlinemetered_rust",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
}