blob: 4e6674f0019952e4527ad2978d54b4bb13b50518 [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/rust/rustc_binary.gni")
import("//src/sys/build/components.gni")
rustc_binary("bin") {
name = "spinel_spi_driver"
with_unit_tests = true
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.lowpan:fuchsia.lowpan-rustc",
"//sdk/fidl/fuchsia.net:fuchsia.net-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:rand",
"//third_party/rust_crates:thiserror",
]
sources = [ "src/main.rs" ]
}
fuchsia_package_with_single_component("spinel_spi_driver") {
deps = [ ":bin" ]
manifest = "meta/spinel_spi_driver.cmx"
}
fuchsia_unittest_package("spinel-spi-driver-test") {
manifest = "meta/spinel-spi-driver-test.cmx"
deps = [ ":bin_test" ]
}
group("tests") {
testonly = true
deps = [ ":spinel-spi-driver-test" ]
}