# 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 = "spacedb"
version = "0.1.0"
build = false
exclude = [
    "example/*",
    "tests/data/*",
    "target/*",
    ".github/*",
    ".commitlintrc.yml",
    "release-plz.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A cryptographically verifiable data store and universal accumulator for the Spaces protocol."
homepage = "https://spacesprotocol.org"
documentation = "https://docs.rs/spacedb"
readme = "README.md"
keywords = [
    "merkle",
    "trie",
    "accumulator",
    "verifiable",
    "no-std",
]
categories = [
    "database-implementations",
    "cryptography",
    "data-structures",
]
license = "Apache-2.0"
repository = "https://github.com/spacesprotocol/spacedb"

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

[features]
default = [
    "std",
    "extras",
]
extras = []
hash-idx = [
    "std",
    "rusqlite",
]
std = [
    "libc",
    "hex",
    "bincode",
]
wasm = [
    "wasm-bindgen",
    "js-sys",
]

[lib]
name = "spacedb"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

[dependencies.bincode]
version = "2.0.1"
features = [
    "alloc",
    "derive",
    "std",
]
optional = true
default-features = false

[dependencies.borsh]
version = "1.5"
features = ["derive"]
default-features = false

[dependencies.hex]
version = "0.4.3"
optional = true

[dependencies.js-sys]
version = "0.3.77"
optional = true

[dependencies.libc]
version = "0.2.150"
optional = true

[dependencies.rusqlite]
version = "0.31"
features = ["bundled"]
optional = true

[dependencies.sha2]
version = "0.10.6"

[dependencies.wasm-bindgen]
version = "0.2.100"
optional = true

[dev-dependencies.rand]
version = "0.8.5"
