| # Copyright 2026 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. | |
| load("//build/bazel/rules/rust:defs.bzl", "rustc_library") | |
| package(default_applicable_licenses = ["//:license"]) | |
| rustc_library( | |
| name = "fscrypt", | |
| srcs = [ | |
| "src/direntry.rs", | |
| "src/hkdf.rs", | |
| "src/lib.rs", | |
| "src/proxy_filename.rs", | |
| ], | |
| edition = "2024", | |
| test_deps = [ | |
| "//third_party/rust_crates/vendor:hex", | |
| ], | |
| visibility = [ | |
| "//src/storage/crypt/fxfs/common:__pkg__", | |
| "//src/storage/crypt/starnix:__pkg__", | |
| "//src/storage/f2fs_reader:__subpackages__", | |
| "//src/storage/fxfs:__subpackages__", | |
| "//src/storage/lib/block_server/vmo_backed:__pkg__", | |
| "//vendor/google:__subpackages__", | |
| ], | |
| with_unit_tests = True, | |
| deps = [ | |
| "//src/storage/fxfs/unicode", | |
| "//third_party/rust_crates/vendor:aes", | |
| "//third_party/rust_crates/vendor:anyhow", | |
| "//third_party/rust_crates/vendor:base64", | |
| "//third_party/rust_crates/vendor:cbc", | |
| "//third_party/rust_crates/vendor:hmac", | |
| "//third_party/rust_crates/vendor:sha2", | |
| "//third_party/rust_crates/vendor:siphasher", | |
| "//third_party/rust_crates/vendor:zerocopy", | |
| ], | |
| ) |