blob: 443903011d706d2f027fe00a3358ad5d3ccca4bf [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/rust/rustc_library.gni")
import("//src/sys/build/components.gni")
rustc_library("zerocopy") {
name = "zerocopy"
version = "0.1.0"
edition = "2018"
with_unit_tests = true
deps = [
"//src/lib/zerocopy/zerocopy-derive",
"//third_party/rust_crates:byteorder",
"//third_party/rust_crates:rand",
]
sources = [
"src/byteorder.rs",
"src/lib.rs",
]
}
fuchsia_unittest_package("zerocopy_tests") {
deps = [ ":zerocopy_test" ]
}
group("tests") {
testonly = true
deps = [
":zerocopy_tests",
"zerocopy-derive:tests",
]
}