[package]
name = "cargo-generate"
description = "cargo, make me a project"
version = "0.23.12"
authors = ["Ashley Williams <ashley666ashley@gmail.com>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/cargo-generate/cargo-generate"
edition = "2021"
include = ["src/**/*", "LICENSE-*", "*.md"]

[dependencies.git2]
default-features = false
features = ["ssh", "https"]
version = "~0.21"

[dependencies]
anstyle = "~1.0"
anyhow = "~1.0"
auth-git2 = "~0.6"
clap = { version = "~4.6", features = ["derive", "wrap_help"] }
console = "~0.16"
dialoguer = "~0.12"
env_logger = "~0.11"
fs-err = "~3.3"
gix-config = "~0.56"
# gix-config 0.56's transitive deps need gix-hash with a hash-kind feature enabled;
# otherwise gix-hash's Kind enum is empty and the crate fails to compile.
gix-hash = { version = "~0.25", default-features = false, features = ["sha1"] }
heck = "~0.5"
home = "~0.5"
ignore = "~0.4"
indexmap = { version = "~2", features = ["serde"] }
indicatif = "~0.18"
liquid = "~0.26"
liquid-core = "~0.26"
liquid-derive = "~0.26"
liquid-lib = "~0.26"
log = "~0.4"
names = { version = "~0.14", default-features = false }
openssl = { version = "~0.10", optional = true }
pastey = "~0.2"
regex = "~1.12"
remove_dir_all = "~1.0"
rhai = "~1.25"
sanitize-filename = "~0.6"
semver = { version = "~1.0", features = ["serde"] }
serde = { version = "~1.0", features = ["derive"] }
tempfile = "3.27.0"
thiserror = "~2.0"
time = "~0.3"
toml = { version = "~1.1", features = ["preserve_order"] }
walkdir = "~2.5"
cargo-util-schemas = "~0.13"

[dev-dependencies]
assert_cmd = "~2.1"
bstr = "~1.12"
indoc = "~2.0"
predicates = "~3.1"
url = "~2.5"

[features]
default = ["vendored-libgit2"]
vendored-libgit2 = ["git2/vendored-libgit2"]
vendored-openssl = ["openssl/vendored", "git2/vendored-openssl"]

[[bin]]
path = "src/main.rs"
name = "cargo-generate"

[profile.release]
codegen-units = 1
lto = true

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
    'cfg(e2e_tests_with_ssh_key)',
] }
