| # Copyright 2019 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/fuchsia_unittest_package.gni") |
| |
| rustc_library("internet-checksum") { |
| name = "internet_checksum" |
| version = "0.2.0" |
| edition = "2018" |
| with_unit_tests = true |
| |
| test_deps = [ |
| "//third_party/rust_crates:rand", |
| "//third_party/rust_crates:rand_xorshift", |
| ] |
| |
| sources = [ "src/lib.rs" ] |
| } |
| |
| fuchsia_unittest_package("tests") { |
| package_name = "internet-checksum-tests" |
| deps = [ ":internet-checksum_test" ] |
| executable_path = "bin/internet_checksum_lib_test" |
| } |