emdb 0.7.1

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.1"
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"]
default = ["ttl"]
encrypt = [
    "dep:aes-gcm",
    "dep:rand_core",
    "dep:argon2",
    "dep:chacha20poly1305",
]
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 = "loom_tests"
path = "tests/loom_tests.rs"

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

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

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

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

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

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

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

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

[[bench]]
name = "lmdb_style"
path = "benches/lmdb_style.rs"
harness = false
required-features = [
    "ttl",
    "bench-compare",
]

[dependencies.aes-gcm]
version = "0.10"
features = [
    "aes",
    "alloc",
]
optional = true
default-features = false

[dependencies.argon2]
version = "0.5"
features = ["alloc"]
optional = true
default-features = false

[dependencies.chacha20poly1305]
version = "0.10"
features = ["alloc"]
optional = true
default-features = false

[dependencies.crc32fast]
version = "1.4"

[dependencies.fs4]
version = "0.8"

[dependencies.memmap2]
version = "0.9"

[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]
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

[dev-dependencies.fastrand]
version = "2"

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

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