emdb 0.7.0

A lightweight, high-performance embedded database for Rust.
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 = "2021"
rust-version = "1.75"
name = "emdb"
version = "0.7.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lightweight, high-performance embedded database for Rust."
homepage = "https://github.com/jamesgober/emdb-rs"
documentation = "https://docs.rs/emdb"
readme = "README.md"
keywords = [
    "database",
    "embedded",
    "storage",
    "kv",
    "db",
]
categories = [
    "database",
    "database-implementations",
    "data-structures",
    "caching",
]
license = "Apache-2.0"
repository = "https://github.com/jamesgober/emdb-rs"

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

[features]
bench-compare = [
    "dep:redb",
    "dep:sled",
]
bench-redis = ["dep:redis"]
bench-rocksdb = ["dep:rocksdb"]
compress = ["dep:lz4_flex"]
default = ["ttl"]
encrypt = []
mmap = ["dep:memmap2"]
nested = []
ttl = []

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

[[example]]
name = "basic"
path = "examples/basic.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.crc32fast]
version = "1.4"

[dependencies.fs4]
version = "0.8"

[dependencies.lz4_flex]
version = "0.11"
optional = true
default-features = false

[dependencies.redb]
version = "2.1"
optional = true

[dependencies.redis]
version = "0.27"
optional = true

[dependencies.rocksdb]
version = "0.22"
optional = true

[dependencies.sled]
version = "0.34"
optional = true

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

[target."cfg(unix)".dependencies.memmap2]
version = "0.9"
optional = true

[target."cfg(windows)".dependencies.memmap2]
version = "0.9"
optional = true

[profile.bench]
opt-level = 3
lto = "fat"
codegen-units = 1

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