| # 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") | |
| load("//build/bazel/rules/testing:fx_unittest_package.bzl", "fx_unittest_package") | |
| package(default_applicable_licenses = ["//:license"]) | |
| rustc_library( | |
| name = "shared-buffer", | |
| srcs = ["src/lib.rs"], | |
| crate_name = "shared_buffer", | |
| edition = "2024", | |
| version = "0.1.0", | |
| visibility = [ | |
| "//src/devices/lib/dma-buffer/rust:__pkg__", | |
| "//src/lib/mapped-vmo:__pkg__", | |
| "//src/starnix/lib/paged_ring_buffer:__pkg__", | |
| ], | |
| with_unit_tests = True, | |
| ) | |
| fx_unittest_package( | |
| name = "shared-buffer-tests", | |
| unit_tests = [":shared-buffer_test"], | |
| ) |