view Cargo.toml @ 624:d4fa806e7f6c

Move FS support behind a feature
author NumberFour8 <lukas.pohanka@inina.net>
date Fri, 01 Sep 2023 10:43:00 +0200
parents 8fead7f1532e
children 850a007b8737
line wrap: on
line source

[package]
name = "rusty-leveldb"
version = "2.0.0"
authors = ["Lewin Bormann <lbo@spheniscida.de>"]
description = "A compatible re-implementation of LevelDB in Rust"
homepage = "https://github.com/dermesser/leveldb-rs"
repository = "https://github.com/dermesser/leveldb-rs"
readme = "README.md"
keywords = ["LevelDB", "key-value", "database", "SSTable", "Google"]
license = "MIT"
publish = true
edition = "2018"
include = ["src/**/*", "src/*", "Cargo.toml", "LICENSE", "README.md"]

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
crc = "1.8"
integer-encoding = "3.0"
rand = "0.7"
snap = "1.0"

errno = { optional = true, version = "0.2" }
fs2 = {optional = true, version = "0.4.3"}

tokio = { optional = true, features = ["rt", "sync"], version = ">= 1.21" }

[features]
default = ["fs"]
async = ["tokio"]
fs = ["errno", "fs2"]

[dev-dependencies]
time-test = "0.2"
bencher = "0.1"

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

[workspace]
members = [
    "examples/write-a-lot",
    "examples/leveldb-tool",
    "examples/word-analyze",
    "examples/stresstest",
    "examples/asyncdb",
    "examples/mcpe",
    "examples/kvserver",
]