Documentation
# 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 = "2021"
name = "turso"
version = "0.6.0"
authors = ["the Turso authors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Turso Rust API"
readme = "README.md"
license = "MIT"
repository = "https://github.com/tursodatabase/turso"

[features]
default = [
    "mimalloc",
    "fts",
]
fts = ["turso_sdk_kit/fts"]
mimalloc = ["dep:mimalloc"]
pure-rust-crypto = [
    "turso_sdk_kit/pure-rust-crypto",
    "turso_sync_sdk_kit/pure-rust-crypto",
]
stacker = ["turso_core/stacker"]
sync = [
    "dep:hyper",
    "dep:tokio",
    "dep:hyper-tls",
    "dep:hyper-util",
    "dep:http-body-util",
    "dep:bytes",
]

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

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

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

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

[[example]]
name = "sync_example"
path = "examples/sync_example.rs"
required-features = ["sync"]

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

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

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

[dependencies.http-body-util]
version = "0.1.3"
optional = true

[dependencies.hyper]
version = "1.8.1"
features = ["http1"]
optional = true

[dependencies.hyper-tls]
version = "0.6.0"
optional = true

[dependencies.hyper-util]
version = "0.1.19"
features = [
    "http1",
    "tokio",
]
optional = true

[dependencies.mimalloc]
version = "0.1.47"
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.16"

[dependencies.tokio]
version = "1.0"
features = ["full"]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1.41"

[dependencies.tracing-subscriber]
version = "0.3.20"

[dependencies.turso_core]
version = "0.6.0"

[dependencies.turso_sdk_kit]
version = "0.6.0"

[dependencies.turso_sync_sdk_kit]
version = "0.6.0"

[dev-dependencies.anyhow]
version = "1.0.98"

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

[dev-dependencies.rand_chacha]
version = "0.9.0"

[dev-dependencies.reqwest]
version = "0.13.2"
features = ["json"]

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

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

[dev-dependencies.tokio]
version = "1.0"
features = ["full"]
default-features = false

[lints.clippy]
assigning_clones = "deny"
clear_with_drain = "deny"
collection_is_never_read = "deny"
large_stack_frames = "deny"
large_types_passed_by_value = "deny"
naive_bytecount = "deny"
or_fun_call = "deny"
redundant_clone = "deny"
stable_sort_primitive = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(loom)",
    "cfg(shuttle)",
    "cfg(antithesis)",
]