# 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 = "2024"
rust-version = "1.87"
name = "bedrock-leveldb"
version = "0.2.2"
build = false
include = [
    "Cargo.toml",
    "README.md",
    "README.zh-CN.md",
    "docs/**/*.md",
    "CHANGELOG.md",
    "LICENSE-APACHE",
    "LICENSE-MIT",
    "src/**/*.rs",
    "tests/**/*.rs",
    "benches/**/*.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust LevelDB-style storage backend for Minecraft Bedrock worlds"
homepage = "https://github.com/BE-Community-Dev/bedrock-leveldb"
documentation = "https://docs.rs/bedrock-leveldb"
readme = "README.md"
keywords = [
    "minecraft",
    "bedrock",
    "leveldb",
    "mcbe",
    "world",
]
categories = [
    "database-implementations",
    "filesystem",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/BE-Community-Dev/bedrock-leveldb"

[package.metadata.docs.rs]
all-features = true

[features]
async = ["dep:tokio"]
bench = []
default = [
    "zlib",
    "snappy",
    "async",
]
mmap = ["dep:memmap2"]
repair-tools = []
snappy = ["dep:snap"]
zlib = ["dep:flate2"]

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

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

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

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

[dependencies.bytes]
version = "1.10.1"

[dependencies.flate2]
version = "1.1.5"
features = ["rust_backend"]
optional = true
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.memmap2]
version = "0.9.9"
optional = true

[dependencies.rayon]
version = "1.11.0"

[dependencies.snap]
version = "1.1.1"
optional = true

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.48.0"
features = [
    "rt",
    "sync",
]
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.tempfile]
version = "3.10"

[lints.clippy]
all = "warn"
pedantic = "warn"

[lints.rust]
unsafe_code = "warn"
