| # 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 = "ptr_slice", |
| srcs = ["src/lib.rs"], |
| crate_name = "storage_ptr_slice", |
| edition = "2024", |
| visibility = [ |
| "//src/storage/fvm:__pkg__", |
| "//src/storage/fxfs:__subpackages__", |
| "//src/storage/lib:__subpackages__", |
| "//src/sys/pkg/lib/fuchsia-merkle:__pkg__", |
| "//vendor/google:__subpackages__", |
| ], |
| with_host_unit_tests = True, |
| deps = ["//third_party/rust_crates/vendor:zerocopy"], |
| ) |