blob: 142ef8b86d75e6954eefd2ae1c439a2e4c3d0c46 [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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("fuchsia-hash") {
name = "fuchsia_hash"
edition = "2024"
with_unit_tests = true
deps = [
"//third_party/rust_crates:hex",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:thiserror",
]
test_deps = [ "//third_party/rust_crates:proptest" ]
sources = [
"src/iter.rs",
"src/lib.rs",
]
configs += [ "//build/config/rust/lints:clippy_warn_all" ]
}
fuchsia_unittest_package("fuchsia-hash-tests") {
deps = [ ":fuchsia-hash_test" ]
}
group("tests") {
testonly = true
public_deps = [ ":fuchsia-hash-tests" ]
}