blob: 9ac8068028e4a509c196645f5c7a57c21a9da4d8 [file] [log] [blame]
# Copyright 2019 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/fidl/fidl.gni")
import("//build/rust/rustc_binary.gni")
import("//src/sys/build/components.gni")
fidl("counter") {
name = "fuchsia.netemul.example"
sources = [ "counter.fidl" ]
}
rustc_binary("bin") {
name = "inheritance"
edition = "2018"
deps = [
":counter-rustc",
"//sdk/fidl/fuchsia.sys:fuchsia.sys-rustc",
"//src/connectivity/network/testing/netemul/lib/fidl:environment-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/lib/syslog/rust:syslog",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:structopt",
"//third_party/rust_crates:thiserror",
]
sources = [ "src/main.rs" ]
configs -= [ "//build/config/rust:allow_unused_results" ]
}
fuchsia_component("inheritance") {
manifest = "meta/inheritance.cmx"
testonly = true
deps = [ ":bin" ]
}