blob: 403dca25088e65693b73fc3e2cdca3f3bdc1e8b0 [file] [log] [blame]
# Copyright 2018 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("packet") {
name = "packet"
version = "0.1.0"
edition = "2018"
deps = [
"//garnet/lib/rust/never",
"//src/lib/zerocopy",
]
sources = [
"src/fragmented.rs",
"src/lib.rs",
"src/records.rs",
"src/serialize.rs",
"src/util.rs",
]
}
rustc_test("packet-lib-test") {
version = "0.1.0"
edition = "2018"
name = "packet_lib_test"
deps = [
"//garnet/lib/rust/never",
"//src/lib/zerocopy",
"//third_party/rust_crates:rand",
]
sources = [
"src/fragmented.rs",
"src/lib.rs",
"src/records.rs",
"src/serialize.rs",
"src/util.rs",
]
}
fuchsia_unittest_package("packet-test") {
deps = [ ":packet-lib-test" ]
manifest = "meta/packet_lib_test.cmx"
}