# 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"
rust-version = "1.95"
name = "drizzle-cli"
version = "0.1.10"
authors = ["Mixed Nuts"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Command-line interface for drizzle-rs migrations"
readme = false
license = "MIT"
repository = "https://github.com/themixednuts/drizzle-rs"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/drizzle-{ target }{ archive-suffix }"
pkg-fmt = "tgz"
bin-dir = "{ bin }{ binary-ext }"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"

[features]
bit-vec = [
    "dep:drizzle-seed",
    "drizzle-seed/bit-vec",
]
chrono = [
    "dep:drizzle-seed",
    "drizzle-seed/chrono",
]
cidr = [
    "dep:drizzle-seed",
    "drizzle-seed/cidr",
]
d1-http = [
    "dep:reqwest",
    "dep:tokio",
    "dep:drizzle-seed",
    "drizzle-seed/sqlite",
]
default = []
geo-types = [
    "dep:drizzle-seed",
    "drizzle-seed/geo-types",
]
libsql = [
    "dep:libsql",
    "dep:tokio",
    "dep:drizzle-seed",
    "drizzle-seed/sqlite",
]
postgres-all = [
    "postgres-sync",
    "tokio-postgres",
]
postgres-sync = [
    "dep:postgres",
    "dep:drizzle-seed",
    "drizzle-seed/postgres",
]
rusqlite = [
    "dep:rusqlite",
    "dep:drizzle-seed",
    "drizzle-seed/sqlite",
]
serde = [
    "dep:drizzle-seed",
    "drizzle-seed/serde",
]
sqlite-all = [
    "rusqlite",
    "libsql",
    "turso",
    "d1-http",
]
tokio-postgres = [
    "dep:tokio-postgres",
    "dep:tokio",
    "dep:drizzle-seed",
    "drizzle-seed/postgres",
]
turso = [
    "dep:turso",
    "dep:libsql",
    "dep:tokio",
    "dep:drizzle-seed",
    "drizzle-seed/sqlite",
]
uuid = [
    "dep:drizzle-seed",
    "drizzle-seed/uuid",
]

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

[[bin]]
name = "drizzle"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
    "color",
]

[dependencies.colored]
version = "3.0"

[dependencies.dotenvy]
version = "0.15"

[dependencies.drizzle-migrations]
version = "0.1"

[dependencies.drizzle-seed]
version = "0.1"
optional = true
default-features = false

[dependencies.drizzle-types]
version = "0.1"
features = [
    "std",
    "serde",
    "schemars",
    "uuid",
    "chrono",
    "time",
    "geo-types",
    "cidr",
    "bit-vec",
]
default-features = false

[dependencies.glob]
version = "0.3"

[dependencies.heck]
version = "0.5"

[dependencies.inquire]
version = "0.7"

[dependencies.libsql]
version = ">=0.9.1, <0.10"
optional = true

[dependencies.postgres]
version = ">=0.19.11, <0.20"
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
optional = true
default-features = false

[dependencies.rusqlite]
version = ">=0.36, <0.40"
features = [
    "bundled",
    "bundled",
]
optional = true

[dependencies.schemars]
version = "1.2"

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "alloc",
    "derive",
]
default-features = false

[dependencies.serde_json]
version = "1.0"
default-features = false

[dependencies.thiserror]
version = "2.0"
default-features = false

[dependencies.tokio]
version = "1.48"
features = [
    "rt",
    "macros",
]
optional = true

[dependencies.tokio-postgres]
version = ">=0.7.15, <0.8"
features = ["runtime"]
optional = true
default-features = false

[dependencies.toml]
version = "0.9"

[dependencies.turso]
version = ">=0.6, <0.7"
features = ["pure-rust-crypto"]
optional = true
default-features = false

[dev-dependencies.assert_cmd]
version = "2.1"

[dev-dependencies.predicates]
version = "3.1"

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