[package]
name = "leveldb-rs-binding"
version = "2.1.0"
edition = "2024"
authors = [
    "Florian Gilcher <florian.gilcher@asquera.de>",
    "Zhang Xin <zxin3306@126.com>",
]

description = "An interface for the LevelDB"

license = "MIT"
readme = "README.md"

documentation = "https://docs.rs/leveldb-rs-binding/latest/leveldb/"
homepage = "https://github.com/rim99/leveldb-rs-binding"
repository = "https://github.com/rim99/leveldb-rs-binding"

build = "src/ffi/build.rs"
links = "leveldb"
autotests = false

[features]
default = ["snappy", "zstd"]
enable_lto = []
logger = []
# TODO: This feature name may change in future versions
# Experimental environment support for LevelDB
exp_env = []  # Feature name subject to change
snappy = []
zstd = []
ci = ["snappy", "zstd", "logger"]

[lib]
name = "leveldb"

[dependencies]
libc = "0.2.*"
ffi-opaque = "2"

[build-dependencies]
cmake = "0.1"
num_cpus = "1.17"
regex = "1"

[dev-dependencies]
tempdir = "0.3"

[[test]]
name = "tests"
