blob: b411ea9d0ad403e8d97be8120dd4d9a0a4397d0e [file] [log] [blame]
# Copyright 2020 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("//build/test/test_package.gni")
import("//build/testing/environments.gni")
rustc_library("fuchsia-hash") {
name = "fuchsia_hash"
edition = "2018"
with_unit_tests = true
deps = [
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:hex",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:thiserror",
]
test_deps = [ "//third_party/rust_crates:proptest" ]
sources = [ "src/lib.rs" ]
}
unittest_package("fuchsia-hash-tests") {
deps = [ ":fuchsia-hash_test" ]
tests = [
{
name = "fuchsia_hash_lib_test"
environments = basic_envs
},
]
}
group("tests") {
testonly = true
public_deps = [ ":fuchsia-hash-tests" ]
}