[package]
name = "shrinkpath"
version = "0.1.3"
edition = "2021"
description = "Smart cross-platform path shortening for CLIs, prompts, and tools"
license = "MIT OR Apache-2.0"
repository = "https://github.com/SecurityRonin/shrinkpath"
homepage = "https://github.com/SecurityRonin/shrinkpath"
readme = "README.md"
keywords = ["path", "shorten"]
categories = ["command-line-utilities", "filesystem"]
rust-version = "1.70"
[dependencies]
clap = { version = "4", features = ["derive"], optional = true }
[features]
default = ["cli"]
cli = ["clap"]
fs = []
[[bin]]
name = "shrinkpath"
required-features = ["cli"]
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
correctness = "deny"
suspicious = "deny"
unwrap_used = "deny"
expect_used = "deny"
module_name_repetitions = { level = "allow", priority = 1 }
must_use_candidate = { level = "allow", priority = 1 }
missing_errors_doc = { level = "allow", priority = 1 }
missing_panics_doc = { level = "allow", priority = 1 }
cast_possible_truncation = { level = "allow", priority = 1 }
cast_possible_wrap = { level = "allow", priority = 1 }
cast_sign_loss = { level = "allow", priority = 1 }
cast_precision_loss = { level = "allow", priority = 1 }
[profile.release]
strip = true
lto = true
codegen-units = 1
panic = "abort"