# 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-core"
version = "1.0.0-rc7"
authors = ["Maximilian Both <admin@moltendb.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MoltenDB core engine — in-memory DashMap storage, WAL persistence, query evaluation. No HTTP, no auth."
readme = "README.md"
keywords = [
    "nosql",
    "embedded",
    "local-first",
    "wasm",
    "json",
]
categories = [
    "database-implementations",
    "wasm",
    "data-structures",
]
license = "Apache-2.0"
repository = "https://github.com/maximilian27/MoltenDB"
resolver = "2"

[features]
default = ["schema"]
schema = ["dep:jsonschema"]

[lib]
name = "moltendb_core"
crate-type = ["rlib"]
path = "src/lib.rs"

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

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

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

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

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

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

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

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

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

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

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

[dependencies.argon2]
version = "0.5"

[dependencies.base64]
version = "0.22"

[dependencies.chacha20poly1305]
version = "0.10"

[dependencies.dashmap]
version = "6.1.0"

[dependencies.jsonschema]
version = "0.46.4"
optional = true
default-features = false

[dependencies.rand_core]
version = "0.6"
features = ["std"]

[dependencies.regex]
version = "1.12.3"

[dependencies.rmp]
version = "0.8.15"

[dependencies.rmp-serde]
version = "1.3.1"

[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.web-time]
version = "1.0.0"

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

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.chrono]
version = "0.4"
features = ["serde"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.dashmap]
version = "6.1.0"
features = ["rayon"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.flate2]
version = "1"

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rayon]
version = "1.10"

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.uuid]
version = "1.22"
features = [
    "v4",
    "v7",
    "serde",
]

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

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

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

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

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

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

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