[package]
edition = "2024"
rust-version = "1.85"
name = "rusty-detox"
version = "0.1.0"
authors = ["James Han <jsh562@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "rusty-detox"
description = "Sanitize messy filenames — a Rust port of Doug Harple's `detox(1)` with the filter pipeline (uncgi, iso8859_1, utf_8, safe, wipeup, max_length), `detoxrc` config grammar, recursive collision-safe batch rename, EXDEV cross-device fallback, and a typed library API."
homepage = "https://github.com/jsh562/rusty-detox"
documentation = "https://docs.rs/rusty-detox"
readme = "README.md"
keywords = [
"detox",
"filename",
"sanitize",
"rename",
"cli",
]
categories = [
"command-line-utilities",
"filesystem",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jsh562/rusty-detox"
[package.metadata.binstall]
bin-dir = "{ name }-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }{ archive-suffix }"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
[features]
cli = [
"dep:clap",
"dep:clap_complete",
"dep:anyhow",
"dep:terminal_size",
"dep:walkdir",
]
default = ["cli"]
inline-detox = ["cli"]
[lib]
name = "rusty_detox"
path = "src/lib.rs"
[[bin]]
name = "inline-detox"
path = "src/bin/inline_detox.rs"
required-features = ["inline-detox"]
[[bin]]
name = "rusty-detox"
path = "src/main.rs"
required-features = ["cli"]
[[test]]
name = "compat_default"
path = "tests/compat_default.rs"
[[test]]
name = "compat_strict"
path = "tests/compat_strict.rs"
[[test]]
name = "completions_drift"
path = "tests/completions_drift.rs"
[[test]]
name = "inline_detox"
path = "tests/inline_detox.rs"
[[test]]
name = "lib_api"
path = "tests/lib_api.rs"
[[test]]
name = "safe_platform"
path = "tests/safe_platform.rs"
[[test]]
name = "walker_recursion"
path = "tests/walker_recursion.rs"
[dependencies.anyhow]
version = "1"
optional = true
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
optional = true
[dependencies.clap_complete]
version = "4"
optional = true
[dependencies.terminal_size]
version = "0.4"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.walkdir]
version = "2"
optional = true
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.static_assertions]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"