# 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 = "diesel-libsql"
version = "0.1.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Diesel ORM backend for libSQL (Turso) — local, remote, replicas, async, OpenTelemetry"
readme = "README.md"
keywords = [
    "diesel",
    "libsql",
    "turso",
    "sqlite",
    "orm",
]
categories = ["database"]
license = "MIT"
repository = "https://github.com/yackey-labs/diesel-libsql"

[features]
async = [
    "dep:diesel-async",
    "dep:futures-util",
]
bb8 = [
    "async",
    "diesel-async/bb8",
]
deadpool = [
    "async",
    "diesel-async/deadpool",
]
default = []
encryption = ["libsql/encryption"]
otel = ["dep:opentelemetry"]
r2d2 = ["dep:r2d2"]

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

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

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

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

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

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

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

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

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

[dependencies.diesel]
version = "2.3"
features = [
    "i-implement-a-third-party-backend-and-opt-into-breaking-changes",
    "sqlite",
]

[dependencies.diesel-async]
version = "0.8"
optional = true

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.libsql]
version = "0.9"

[dependencies.libsqlite3-sys]
version = ">=0.17.2, <0.38.0"
features = ["bundled"]

[dependencies.opentelemetry]
version = "0.31"
optional = true

[dependencies.r2d2]
version = "0.8"
optional = true

[dependencies.tokio]
version = "1"
features = ["rt-multi-thread"]

[dev-dependencies.diesel_migrations]
version = "2.3"

[dev-dependencies.r2d2]
version = "0.8"

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]
