[package]
authors = ["Valentin Bersier <hi@beeb.li>"]
categories = ["development-tools", "command-line-utilities"]
description = "TUI utility to search and replace text, with a focus on ergonomics, speed and case-awareness in source code"
edition = "2024"
license = "MIT OR Apache-2.0"
name = "swpui"
readme = "./README.md"
repository = "https://github.com/beeb/swpui"
rust-version = "1.94.0"
version = "0.5.1"

[[bin]]
name = "swp"
path = "src/main.rs"

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

[dependencies]
anyhow = "1.0.102"
convert_case = "0.11.0"
dunce = "1.0.5"
ignore = "0.4.23"
memchr = "2.7.4"
rat-widget = "3.2.1"
ratatui = "0.30.0"
rayon = "1.12.0"
regex = "1.11.1"
sha2 = "0.11.0"
tempfile = "3.19.1"
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["fmt", "env-filter"] }
unicode-width = "0.2"

[profile.release]
lto = "thin"

# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
