# 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 = "jazz-tools"
version = "2.0.0-alpha.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Jazz local-first relational database core, runtime, client, and CLI."
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/garden-co/jazz2"
resolver = "2"

[features]
cli = [
    "runtime-tokio",
    "transport",
    "surrealkv",
    "dep:tokio",
    "dep:axum",
    "dep:clap",
    "dep:tracing-subscriber",
    "dep:tower-http",
    "dep:async-stream",
    "dep:jsonwebtoken",
    "dep:base64",
    "dep:bytes",
]
client = [
    "runtime-tokio",
    "transport-http",
    "surrealkv",
    "dep:thiserror",
    "dep:tokio",
]
default = []
runtime-tokio = ["dep:tokio"]
surrealkv = [
    "dep:surrealkv",
    "dep:tokio",
]
transport = []
transport-http = [
    "transport",
    "dep:reqwest",
    "dep:base64",
    "dep:bytes",
]

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

[[bin]]
name = "jazz-tools"
path = "src/main.rs"
required-features = ["cli"]

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

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

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

[dependencies.ahash]
version = "0.8"

[dependencies.async-stream]
version = "0.3"
optional = true

[dependencies.axum]
version = "0.7"
optional = true

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.bitvec]
version = "1.0"

[dependencies.blake3]
version = "1"

[dependencies.bytes]
version = "1"
optional = true

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.internment]
version = "0.8"

[dependencies.jsonwebtoken]
version = "9"
optional = true

[dependencies.opfs-btree]
version = "0.1.0"

[dependencies.rand]
version = "0.8"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "stream",
]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.small-map]
version = "0.1"

[dependencies.smallvec]
version = "1.11"
features = ["serde"]

[dependencies.smolset]
version = "1.3"

[dependencies.surrealkv]
version = "0.19"
optional = true

[dependencies.thiserror]
version = "1"
optional = true

[dependencies.tokio]
version = "1"
features = ["full"]
optional = true

[dependencies.tower-http]
version = "0.5"
features = [
    "cors",
    "trace",
]
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
optional = true

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "v5",
    "v7",
    "serde",
]

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

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

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.jsonwebtoken]
version = "9"

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "stream",
]

[dev-dependencies.serde]
version = "1"
features = ["derive"]

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "test-util",
    "full",
]
