| # 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_binary.gni") | |
| import("//src/sys/build/components.gni") | |
| rustc_binary("bin") { | |
| name = "donut" | |
| with_unit_tests = true | |
| edition = "2018" | |
| deps = [ | |
| "//sdk/fidl/fuchsia.net:fuchsia.net-rustc", | |
| "//sdk/fidl/fuchsia.wlan.common:fuchsia.wlan.common-rustc", | |
| "//sdk/fidl/fuchsia.wlan.device:fuchsia.wlan.device-rustc", | |
| "//sdk/fidl/fuchsia.wlan.policy:fuchsia.wlan.policy-rustc", | |
| "//sdk/fidl/fuchsia.wlan.product.deprecatedconfiguration:fuchsia.wlan.product.deprecatedconfiguration-rustc", | |
| "//src/connectivity/wlan/lib/common/rust/:wlan-common", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/fuchsia-component", | |
| "//src/lib/zircon/rust:fuchsia-zircon", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:clap", | |
| "//third_party/rust_crates:eui48", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:hex", | |
| "//third_party/rust_crates:percent-encoding", | |
| "//third_party/rust_crates:pin-utils", | |
| "//third_party/rust_crates:serde", | |
| "//third_party/rust_crates:serde_json", | |
| "//third_party/rust_crates:structopt", | |
| ] | |
| sources = [ | |
| "src/main.rs", | |
| "src/opts.rs", | |
| "src/policy/mod.rs", | |
| "src/policy/serialize.rs", | |
| ] | |
| } | |
| fuchsia_shell_package("donut") { | |
| deps = [ ":bin" ] | |
| manifest = "meta/donut.cmx" | |
| } | |
| fuchsia_unittest_package("donut-tests") { | |
| deps = [ ":bin_test" ] | |
| } |