blob: f9d8547d17b4cd96a10856d1af48b7bdfa9e69e2 [file] [log] [blame]
# 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_library.gni")
import("//src/sys/build/components.gni")
rustc_library("lowpan_driver_common") {
edition = "2018"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.factory.lowpan:fuchsia.factory.lowpan-rustc",
"//sdk/fidl/fuchsia.lowpan:fuchsia.lowpan-rustc",
"//sdk/fidl/fuchsia.lowpan.device:fuchsia.lowpan.device-rustc",
"//sdk/fidl/fuchsia.lowpan.test:fuchsia.lowpan.test-rustc",
"//sdk/fidl/fuchsia.lowpan.thread:fuchsia.lowpan.thread-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/syslog/rust:syslog",
"//src/lib/zircon/rust:fuchsia-zircon",
"//src/lib/zircon/rust:fuchsia-zircon-status",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:hex",
"//third_party/rust_crates:matches",
"//third_party/rust_crates:slab",
"//third_party/rust_crates:thiserror",
]
sources = [
"src/async_condition.rs",
"src/dummy_device.rs",
"src/lib.rs",
"src/lowpan_device.rs",
"src/serve_to.rs",
]
}
fuchsia_unittest_package("lowpan-driver-common-tests") {
deps = [ ":lowpan_driver_common_test" ]
}
group("tests") {
testonly = true
deps = [ ":lowpan-driver-common-tests" ]
}