[package]
name = "limb"
version = "0.2.1"
edition = "2024"
rust-version = "1.88"
authors = ["Steele S. <steele@steelesh.dev>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ss0923/limb"
homepage = "https://github.com/ss0923/limb"
description = "A focused CLI for git worktree management"
keywords = ["git", "worktree", "cli", "tui"]
categories = ["command-line-utilities", "development-tools"]
exclude = ["/.github", "/contrib"]

[dependencies]
anstream = "1"
anstyle = "1"
anyhow = "1"
clap = { version = "4", features = ["derive", "env"] }
clap_complete = "4"
crossterm = "0.29"
ctrlc = { version = "3.5", features = ["termination"] }
dirs = "6"
nucleo-matcher = "0.3"
pathdiff = "0.2"
ratatui = { version = "0.30", default-features = false, features = ["crossterm", "crossterm_0_29"] }
rayon = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
strsim = "0.11"
toml = "1"

[dev-dependencies]
assert_cmd = "2"
criterion = { version = "0.8", features = ["html_reports"] }
predicates = "3"
proptest = "1"
tempfile = "3"

[[bench]]
name = "parse_porcelain"
harness = false

[[bench]]
name = "fuzzy_score"
harness = false

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

[profile.dist]
inherits = "release"
lto = "thin"

[profile.bench]
inherits = "release"
lto = false
codegen-units = 16
strip = false
debug = true

[lints.rust]
unsafe_code = "deny"

[lints.rustdoc]
broken_intra_doc_links = "deny"
private_intra_doc_links = "deny"
invalid_rust_codeblocks = "deny"

[lints.clippy]
pedantic = { level = "warn", priority = -1 }
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"

[workspace.metadata.dist]
cargo-dist-version = "0.31.0"
ci = "github"
installers = ["shell", "powershell", "homebrew"]
tap = "ss0923/homebrew-tap"
publish-jobs = ["homebrew"]
allow-dirty = ["ci"]
targets = [
    "aarch64-apple-darwin",
    "aarch64-unknown-linux-gnu",
    "x86_64-apple-darwin",
    "x86_64-unknown-linux-gnu",
    "x86_64-pc-windows-msvc",
]
