| # 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("spinel_pack") { |
| edition = "2018" |
| with_unit_tests = true |
| deps = [ |
| "spinel_pack_macros", |
| "//src/lib/zerocopy", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:byteorder", |
| "//third_party/rust_crates:matches", |
| "//third_party/rust_crates:proc-macro-hack", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| sources = [ |
| "src/eui.rs", |
| "src/lib.rs", |
| "src/primitives.rs", |
| ] |
| } |
| |
| fuchsia_unittest_package("spinel-pack-tests") { |
| deps = [ ":spinel_pack_test" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ |
| ":spinel-pack-tests", |
| ":spinel_pack_test($host_toolchain)", |
| ] |
| } |