page-db 1.0.0

The paging substrate beneath B-tree and heap storage engines - fixed-size pages, CRC32 headers with LSN slots, an LRU buffer pool with dirty-page pinning, and cross-platform Direct I/O.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85"
name = "page-db"
version = "1.0.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The paging substrate beneath B-tree and heap storage engines - fixed-size pages, CRC32 headers with LSN slots, an LRU buffer pool with dirty-page pinning, and cross-platform Direct I/O."
homepage = "https://github.com/jamesgober/page-db"
documentation = "https://docs.rs/page-db"
readme = "README.md"
keywords = [
    "page",
    "buffer-pool",
    "paging",
    "storage-engine",
    "direct-io",
]
categories = [
    "database-implementations",
    "filesystem",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/page-db"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
serde = ["dep:serde"]

[lib]
name = "page_db"
path = "src/lib.rs"

[[test]]
name = "alignment"
path = "tests/alignment.rs"

[[test]]
name = "direct_io"
path = "tests/direct_io.rs"

[[test]]
name = "end_to_end"
path = "tests/end_to_end.rs"

[[test]]
name = "fault_injection"
path = "tests/fault_injection.rs"

[[test]]
name = "proptests"
path = "tests/proptests.rs"

[[test]]
name = "stress"
path = "tests/stress.rs"

[[bench]]
name = "page_bench"
path = "benches/page_bench.rs"
harness = false

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.tempfile]
version = "3"

[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"