blob: 3bb5789088e8a4bb2447dbab2d2381d86d4c86f6 [file] [log] [blame]
# Copyright 2022 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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("netsvc-proto") {
version = "0.1.0"
edition = "2021"
with_unit_tests = true
deps = [
"//src/lib/const-unwrap",
"//src/lib/network/packet",
"//third_party/rust_crates:arrayvec",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:unicase",
"//third_party/rust_crates:zerocopy",
]
sources = [
"src/debuglog.rs",
"src/lib.rs",
"src/netboot.rs",
"src/tftp.rs",
]
test_deps = [ "//third_party/rust_crates:assert_matches" ]
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
}
fuchsia_unittest_package("netsvc-proto-test") {
deps = [ ":netsvc-proto_test" ]
}
group("tests") {
testonly = true
deps = [
":netsvc-proto-test",
":netsvc-proto_test($host_toolchain)",
]
}