# 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"
rust-version = "1.85"
name = "stgit"
version = "2.6.1"
authors = [
    "Catalin Marinas <catalin.marinas@gmail.com>",
    "Peter Grayson <pete@jpgrayson.net>",
]
build = "build.rs"
exclude = [
    "/.github",
    "Documentation/",
    "/t",
    "/contrib/release",
    "/contrib/wix",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Stack-based patch management for Git"
homepage = "https://stacked-git.github.io/"
readme = "README.md"
keywords = [
    "git",
    "vcs",
    "cli",
    "utility",
]
categories = ["development-tools"]
license = "GPL-2.0-only"
repository = "https://github.com/stacked-git/stgit"

[[package.metadata.generate-rpm.assets]]
source = "target/release/stg"
dest = "/usr/bin/"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "README.md"
dest = "/usr/share/doc/stgit/"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "COPYING"
dest = "/usr/share/licenses/stgit/"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "Documentation/*.1"
dest = "/usr/share/man/man1/"
mode = "644"
doc = true

[[package.metadata.generate-rpm.assets]]
source = "completion/stgit.zsh"
dest = "/usr/share/zsh/site-functions/_stg"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "completion/stg.fish"
dest = "/usr/share/fish/vendor_completions.d/"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "completion/stgit.bash"
dest = "/usr/share/bash-completion/completions/stg"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "contrib/vim/ftdetect/stg.vim"
dest = "/usr/share/vim/vimfiles/ftdetect/"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "contrib/vim/syntax/*.vim"
dest = "/usr/share/vim/vimfiles/syntax/"
mode = "644"

[package.metadata.generate-rpm.requires]
git-core = "*"
git-email = "*"
vim-filesystem = "*"

[package.metadata.deb]
maintainer = "Peter Grayson <pete@jpgrayson.net>"
section = "vcs"
priority = "optional"
depends = "git"
recommends = "git-email"
extended-description = ""
assets = [
    [
    "target/release/stg",
    "usr/bin/",
    "755",
],
    [
    "README.md",
    "usr/share/doc/stgit/",
    "644",
],
    [
    "COPYING",
    "usr/share/doc/stgit/copyright",
    "644",
],
    [
    "Documentation/*.1",
    "usr/share/man/man1/",
    "644",
],
    [
    "completion/stgit.zsh",
    "usr/share/zsh/vendor-completions/_stg",
    "644",
],
    [
    "completion/stg.fish",
    "usr/share/fish/vendor-completions.d/",
    "644",
],
    [
    "completion/stgit.bash",
    "usr/share/bash-completion/completions/stg",
    "644",
],
    [
    "contrib/vim/ftdetect/stg.vim",
    "usr/share/vim/addons/ftdetect/",
    "644",
],
    [
    "contrib/vim/syntax/*.vim",
    "usr/share/vim/addons/syntax/",
    "644",
],
]

[features]
default = ["import-url"]
import-url = ["dep:curl"]

[[bin]]
name = "stg"
path = "src/main.rs"
bench = false

[dependencies.anstyle]
version = "1.0"
features = ["std"]

[dependencies.anyhow]
version = "1.0"

[dependencies.bstr]
version = "1.11"
features = ["std"]
default-features = false

[dependencies.bzip2-rs]
version = "0.1"

[dependencies.clap]
version = "~4.6"
features = [
    "color",
    "help",
    "std",
    "string",
    "suggestions",
    "usage",
    "wrap_help",
]
default-features = false

[dependencies.ctrlc]
version = "3.4"

[dependencies.curl]
version = "0.4"
optional = true

[dependencies.encoding_rs]
version = "0.8"

[dependencies.flate2]
version = "1"

[dependencies.gix]
version = "0.84"
features = [
    "command",
    "revision",
    "sha1",
]
default-features = false

[dependencies.indexmap]
version = "2.7"

[dependencies.is-terminal]
version = "0.4"

[dependencies.jiff]
version = "0.2.1"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.strsim]
version = "0.11"

[dependencies.tar]
version = "0.4"

[dependencies.tempfile]
version = "3"

[dependencies.termcolor]
version = "1.4"

[dependencies.thiserror]
version = "~2.0"

[dependencies.winnow]
version = "1.0"

[profile.for-pkg]
lto = true
inherits = "release"
strip = "none"
