lints.workspace = true

[package]
name = "gix-credentials"
version = "0.37.1"
repository = "https://github.com/GitoxideLabs/gitoxide"
license = "MIT OR Apache-2.0"
description = "A crate of the gitoxide project to interact with git credentials helpers"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
edition = "2021"
rust-version = "1.82"
include = ["src/**/*", "LICENSE-*"]

[lib]
doctest = false

[features]
## Data structures implement `serde::Serialize` and `serde::Deserialize`.
serde = ["dep:serde", "bstr/serde", "gix-sec/serde"]

[dependencies]
gix-sec = { version = "^0.13.2", path = "../gix-sec" }
gix-url = { version = "^0.35.2", path = "../gix-url" }
gix-path = { version = "^0.11.2", path = "../gix-path" }
gix-command = { version = "^0.8.0", path = "../gix-command" }
gix-config-value = { version = "^0.17.1", path = "../gix-config-value" }
gix-prompt = { version = "^0.14.1", path = "../gix-prompt" }
gix-date = { version = "^0.15.1", path = "../gix-date" }
gix-trace = { version = "^0.1.18", path = "../gix-trace" }

thiserror = "2.0.18"
serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] }
bstr = { version = "1.12.0", default-features = false, features = ["std"] }



document-features = { version = "0.2.1", optional = true }

[dev-dependencies]
gix-quote = { path = "../gix-quote" }
gix-sec = { path = "../gix-sec" }
gix-testtools = { path = "../tests/tools" }

[package.metadata.docs.rs]
all-features = true
features = ["document-features"]

[package.metadata.cargo-machete]
ignored = [
    # Public optional `serde` feature is retained for downstream feature compatibility.
    "serde",
]
