[package]
edition = "2021"
rust-version = "1.88"
name = "aligned-vmem"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform aligned anonymous virtual memory: reserve, commit, decommit, and release power-of-two-aligned spans via mmap/VirtualAlloc. Zero dependencies, miri-friendly."
homepage = "https://github.com/PHPCraftdream/sefer-alloc/tree/main/crates/aligned-vmem"
documentation = "https://docs.rs/aligned-vmem"
readme = "README.md"
keywords = [
"mmap",
"virtualalloc",
"memory",
"decommit",
"aligned",
]
categories = [
"memory-management",
"os",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/PHPCraftdream/sefer-alloc"
[package.metadata.docs.rs]
features = [
"lazy-commit",
"huge-pages",
"fault-injection",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
alloc-lazy-commit = ["lazy-commit"]
bench-internals = []
fault-injection = ["lazy-commit"]
huge-pages = []
lazy-commit = []
[lib]
name = "aligned_vmem"
path = "src/lib.rs"
[[example]]
name = "v1189_windows_large_page_native_profile"
path = "examples/v1189_windows_large_page_native_profile.rs"
required-features = [
"bench-internals",
"huge-pages",
]
[[example]]
name = "v20_849_unix_exact_reserve_hit_rate"
path = "examples/v20_849_unix_exact_reserve_hit_rate.rs"
required-features = ["bench-internals"]
[[test]]
name = "bench_internals_counters"
path = "tests/bench_internals_counters.rs"
[[test]]
name = "decommit_capability"
path = "tests/decommit_capability.rs"
[[test]]
name = "decommit_outcome"
path = "tests/decommit_outcome.rs"
[[test]]
name = "decommit_poison_no_panic"
path = "tests/decommit_poison_no_panic.rs"
[[test]]
name = "fault_injection"
path = "tests/fault_injection.rs"
[[test]]
name = "granted_huge_reader_enumeration"
path = "tests/granted_huge_reader_enumeration.rs"
[[test]]
name = "huge_pages"
path = "tests/huge_pages.rs"
[[test]]
name = "lazy_commit"
path = "tests/lazy_commit.rs"
[[test]]
name = "lazy_reservation"
path = "tests/lazy_reservation.rs"
[[test]]
name = "lazy_reservation_debug"
path = "tests/lazy_reservation_debug.rs"
[[test]]
name = "lazy_reservation_no_borrowed_reservation"
path = "tests/lazy_reservation_no_borrowed_reservation.rs"
[[test]]
name = "min_page"
path = "tests/min_page.rs"
[[test]]
name = "mock"
path = "tests/mock.rs"
[[test]]
name = "mock_reentrancy"
path = "tests/mock_reentrancy.rs"
[[test]]
name = "page_size_override"
path = "tests/page_size_override.rs"
[[test]]
name = "page_size_query_failure"
path = "tests/page_size_query_failure.rs"
[[test]]
name = "readme_example"
path = "tests/readme_example.rs"
[[test]]
name = "reservation_decommit_contract"
path = "tests/reservation_decommit_contract.rs"
[[test]]
name = "reservation_parts"
path = "tests/reservation_parts.rs"
[[test]]
name = "round_trip_contract"
path = "tests/round_trip_contract.rs"
[[test]]
name = "smoke"
path = "tests/smoke.rs"
[[test]]
name = "try_decommit"
path = "tests/try_decommit.rs"
[[test]]
name = "vmemerror_io_bridge"
path = "tests/vmemerror_io_bridge.rs"
[[bench]]
name = "vmem_bench"
path = "benches/vmem_bench.rs"
harness = false
[dependencies]
[dev-dependencies.bench-scale-tool]
version = "0.1"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(aligned_vmem_mock)",
"cfg(aligned_vmem_page_size_override)",
]