[package]
edition = "2021"
rust-version = "1.85"
name = "hunkpick"
version = "0.2.1"
authors = ["Vitaly Ostanin <vitaly.ostanin@gmail.com>"]
build = false
exclude = [
".github/",
".config/",
"scripts/",
"docs/",
"CONTRIBUTING.md",
"CLAUDE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Non-interactive unified-diff hunk picker and splitter"
readme = "README.md"
keywords = [
"diff",
"patch",
"hunk",
"git",
"cli",
]
categories = [
"command-line-utilities",
"development-tools",
]
license = "MIT"
repository = "https://github.com/VitalyOstanin/hunkpick"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-{ target }.tar.gz"
bin-dir = "{ name }-{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-{ target }.zip"
pkg-fmt = "zip"
[lib]
name = "hunkpick"
path = "src/lib.rs"
[[bin]]
name = "hunkpick"
path = "src/main.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "edge_corpus"
path = "tests/edge_corpus.rs"
[[test]]
name = "encoding_input"
path = "tests/encoding_input.rs"
[[test]]
name = "id_and_star"
path = "tests/id_and_star.rs"
[[test]]
name = "input_source"
path = "tests/input_source.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"