# 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 = "superline"
version = "0.5.4"
authors = [
    "alxhill <me@alxhill.com>",
    "cirho <me@cirho.com>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Configurable Powerline implementation in pure Rust."
readme = "README.md"
license = "MIT"
repository = "https://github.com/alxhill/superline"

[features]
default = ["libgit"]
gitoxide = ["gix"]
libgit = ["git2"]

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

[[bin]]
name = "superline"
path = "src/bin/superline.rs"

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

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

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

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

[dependencies.chrono]
version = "0.4.38"

[dependencies.clap]
version = "4.5.7"
features = ["derive"]

[dependencies.git2]
version = "0.18"
optional = true
default-features = false

[dependencies.gix]
version = "0.84"
features = [
    "sha1",
    "status",
    "revision",
    "max-performance-safe",
]
optional = true
default-features = false

[dependencies.hostname]
version = "0.3"

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

[dependencies.serde_json]
version = "1.0.117"

[dependencies.thiserror]
version = "1.0.61"

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[target."cfg(unix)".dependencies.users]
version = "0.11"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 0
panic = "abort"
strip = "debuginfo"

[profile.release.build-override]
opt-level = 3
codegen-units = 1
