# 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.85"
name = "bison-db"
version = "1.0.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
exclude = ["benchmarks/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An embedded, document-oriented database for Rust - schemaless documents, secondary indexes, and ACID single-file storage, with zero network and zero external services."
homepage = "https://github.com/jamesgober/bison-db"
documentation = "https://docs.rs/bison-db"
readme = "README.md"
keywords = [
    "document-database",
    "embedded",
    "nosql",
    "document-store",
    "database",
]
categories = [
    "database-implementations",
    "data-structures",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/bison-db"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["std"]
serde = ["dep:serde"]
std = []

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

[[example]]
name = "compaction"
path = "examples/compaction.rs"

[[example]]
name = "crash_recovery"
path = "examples/crash_recovery.rs"

[[example]]
name = "durability"
path = "examples/durability.rs"

[[example]]
name = "json_interop"
path = "examples/json_interop.rs"
required-features = ["serde"]

[[example]]
name = "quick_start"
path = "examples/quick_start.rs"

[[example]]
name = "secondary_indexes"
path = "examples/secondary_indexes.rs"

[[example]]
name = "session_store"
path = "examples/session_store.rs"

[[example]]
name = "user_profiles"
path = "examples/user_profiles.rs"

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

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

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

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

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

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

[dependencies.serde]
version = "1"
features = [
    "derive",
    "alloc",
]
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.serde_json]
version = "1"

[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"

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