[package]
name = "sanakirja"
version = "1.4.3"
authors = [ "Pierre-Étienne Meunier" ]
edition = "2018"
description = "Copy-on-write datastructures, storable on disk (or elsewhere) with a stable format."
license = "MIT/Apache-2.0"
documentation = "https://docs.rs/sanakirja"
repository = "https://nest.pijul.com/pijul/sanakirja"
include = [
"Cargo.toml",
"src/lib.rs",
"src/debug.rs",
"src/environment/mod.rs",
"src/environment/global_header.rs",
"src/environment/muttxn.rs",
"src/tests.rs"
]

[features]
default = [ "mmap" ]
crc32 = [ "crc32fast", "lazy_static", "sanakirja-core/crc32" ]
mmap = [ "memmap2", "fs4", "libc" ]
ed25519 = [ "sanakirja-core/ed25519" ]
std = [ "sanakirja-core/std" ]
uuid = [ "sanakirja-core/uuid" ]

[dependencies]
parking_lot = "0.11"
thiserror = "1.0"
log = { version = "0.4" }
sanakirja-core = { path = "../sanakirja-core", version = "1.4.1" }
memmap2 = { version = "0.9", optional = true }
fs4 = { version = "0.6.3", optional = true }
libc = {version = "0.2", optional = true }
crc32fast = { version = "1.2", optional = true, default-features = false }
lazy_static = { version = "1.4", optional = true }
serde = "1.0"

[dev-dependencies]
env_logger = "0.8"
libc = "0.2"
lmdb-rs = "0.7"
sled = "0.34"
rand = {version = "0.8", features = [ "small_rng" ] }
uuid_ = { package = "uuid", version = "0.8", features = [ "v4" ] }
tempfile = "3.2"