blob: 93d305fbb1bef4634678bf0ee94673e7bc3c8e1a [file]
# 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.
import("//build/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("mapping") {
name = "mapping"
edition = "2024"
with_unit_tests = true
sources = [
"src/blob.rs",
"src/extents.rs",
"src/lib.rs",
"src/reader.rs",
]
deps = [
"//src/lib/fuchsia-sync",
"//src/storage/lib/delivery_blob",
"//src/storage/lib/storage_device",
"//third_party/rust_crates:anyhow",
]
test_deps = [ "//src/storage/lib/ptr_slice" ]
}
fuchsia_unittest_package("mapping-tests") {
deps = [ ":mapping_test" ]
}
group("tests") {
testonly = true
deps = [ ":mapping-tests" ]
}