# 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 = "duckman"
version = "0.1.4"
authors = ["linux_china <libing.chen@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "duckman"
description = "duckman - a DuckDB version manager and toolchain CLI"
homepage = "https://github.com/linux-china/duckman"
documentation = "https://github.com/linux-china/duckman"
readme = "README.md"
keywords = [
    "duckdb",
    "version-manager",
    "database-tools",
    "cli",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/linux-china/duckman"

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

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

[[bin]]
name = "duckman_shim"
path = "src/shim.rs"

[dependencies.anyhow]
version = "1"

[dependencies.clap]
version = "4.6"

[dependencies.clap_complete]
version = "4.6"

[dependencies.colored]
version = "3.1"

[dependencies.csv]
version = "1.4"

[dependencies.dirs]
version = "6"

[dependencies.dotenvx-rs]
version = "0.4.31"

[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false

[dependencies.indicatif]
version = "0.18"

[dependencies.lazy_static]
version = "1.5.0"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "stream",
]

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

[dependencies.tokio]
version = "1.52"
features = ["full"]

[dependencies.toml]
version = "1.1.2+spec-1.1.0"

[dependencies.toml_edit]
version = "0.25.11+spec-1.1.0"

[dependencies.which]
version = "8"

[dependencies.zip]
version = "8.6"

[dev-dependencies.testresult]
version = "0.4.1"

[target.'cfg(target_os = "linux")'.dependencies.openssl]
version = "0.10"
features = ["vendored"]

[profile.dev]
opt-level = 0
debug = 0

[profile.dev.package."*"]
opt-level = 3

[profile.dist]
lto = true
inherits = "release"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
