blob: 30afab0c713cf490bc0d517c05c816363e97b89e [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("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",
]
}