blob: 4c7a15da756d104917e48f789bd41ef6a912ed46 [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/extents.rs",
"src/file.rs",
"src/lib.rs",
"src/page_request.rs",
"src/pager.rs",
"src/protocol.rs",
"src/reader.rs",
"src/testing.rs",
]
deps = [
"//sdk/rust/zx",
"//src/lib/fuchsia-sync",
"//src/storage/lib/blob_metadata",
"//src/storage/lib/delivery_blob",
"//src/storage/lib/ptr_slice",
"//src/storage/lib/storage_device",
"//src/storage/lib/vmo-fifo",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:bincode",
"//third_party/rust_crates:byteorder",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:zerocopy",
]
test_deps = [
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
]
}
fuchsia_unittest_package("mapping-tests") {
deps = [ ":mapping_test" ]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
}
group("tests") {
testonly = true
deps = [ ":mapping-tests" ]
}