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

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

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

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

[dependencies.anyhow]
version = "1.0.102"

[dependencies.convert_case]
version = "0.11.0"

[dependencies.dunce]
version = "1.0.5"

[dependencies.ignore]
version = "0.4.23"

[dependencies.memchr]
version = "2.7.4"

[dependencies.rat-widget]
version = "3.2.1"

[dependencies.ratatui]
version = "0.30.0"

[dependencies.rayon]
version = "1.12.0"

[dependencies.regex]
version = "1.11.1"

[dependencies.sha2]
version = "0.11.0"

[dependencies.tempfile]
version = "3.19.1"

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-subscriber]
version = "0.3.23"
features = [
    "fmt",
    "env-filter",
]

[dependencies.unicode-width]
version = "0.2"

[lints.clippy]
allow_attributes = "warn"
expect_used = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
mod_module_files = "warn"
module_name_repetitions = "allow"
unwrap_used = "deny"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[profile.dist]
inherits = "release"

[profile.release]
lto = "thin"
