# 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"
name = "moltendb"
version = "0.1.0-alpha.25"
authors = ["Maximilian Both <maximilian.both27@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A real-time, local-first NoSQL database written in Rust."
readme = "README.md"
keywords = [
    "nosql",
    "embedded",
    "local-first",
    "wasm",
    "json",
]
categories = [
    "database-implementations",
    "wasm",
    "data-structures",
]
license = "BUSL-1.1"
license-file = "LICENSE.md"
repository = "https://github.com/maximilian27/MoltenDB"

[package.metadata.wasm-pack.profile.release]
wasm-opt = false

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

[[bin]]
name = "moltendb"
path = "src/main.rs"
test = false

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

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

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

[dependencies.console_error_panic_hook]
version = "0.1.7"

[dependencies.dashmap]
version = "6.1.0"

[dependencies.regex]
version = "1.12.3"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.149"

[dependencies.tokio]
version = "1.50.0"
features = [
    "sync",
    "time",
    "macros",
]
default-features = false

[dependencies.tracing]
version = "0.1.44"

[dependencies.uuid]
version = "1.22"
features = [
    "v7",
    "serde",
]

[dependencies.web-sys]
version = "0.3.91"

[dependencies.web-time]
version = "1.0.0"

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "blocking",
    "json",
    "native-tls",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.argon2]
version = "0.5"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.axum]
version = "0.8.8"
features = ["ws"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.axum-server]
version = "0.8.0"
features = ["tls-rustls"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.base64]
version = "0.22"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.bcrypt]
version = "0.19.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.bincode]
version = "1.3.3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.chacha20poly1305]
version = "0.10"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.futures]
version = "0.3.31"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.jsonwebtoken]
version = "10.3.0"
features = ["rust_crypto"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.memmap2]
version = "0.9"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rand_core]
version = "0.6"
features = ["std"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.49.0"
features = ["full"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite]
version = "0.28.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tower]
version = "0.5.3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tower-http]
version = "0.6.8"
features = [
    "limit",
    "set-header",
    "cors",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tracing-subscriber]
version = "0.3.22"
features = ["env-filter"]

[target.'cfg(target_arch = "wasm32")'.dependencies.console_error_panic_hook]
version = "0.1.7"

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2.17"
features = ["js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.89"

[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6"

[target.'cfg(target_arch = "wasm32")'.dependencies.uuid]
version = "1.20"
features = [
    "v7",
    "serde",
    "js",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.114"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4.62"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.89"
features = [
    "console",
    "Window",
    "MessageEvent",
    "WorkerGlobalScope",
    "WorkerNavigator",
    "StorageManager",
    "FileSystemDirectoryHandle",
    "FileSystemFileHandle",
    "FileSystemSyncAccessHandle",
    "FileSystemGetFileOptions",
    "FileSystemReadWriteOptions",
]

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
