blob: 0bbd6a59c1875814bff3339a7471cedfa4b989e0 [file] [log] [blame]
# Copyright 2022 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")
import("//build/rust/rustc_staticlib.gni")
rustc_library("key-bag") {
with_unit_tests = true
edition = "2021"
deps = [
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:aes-gcm-siv",
"//third_party/rust_crates:hex",
"//third_party/rust_crates:itertools",
"//third_party/rust_crates:openat",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:tempfile",
]
sources = [ "src/lib.rs" ]
}
resource("testdata") {
testonly = true
sources = [ "testdata/key_bag.json" ]
outputs = [ "data/{{source_file_part}}" ]
}
fuchsia_unittest_package("key-bag-tests") {
deps = [
":key-bag_test",
":testdata",
"//src/sys/test_runners:tmp_storage",
]
}
group("tests") {
testonly = true
deps = [ ":key-bag-tests" ]
}