Lynnesbian
129aa83ade
All checks were successful
continuous-integration/drone/tag Build is passing
- extension_from_path now returns Option<&OsStr> - two new tests - Findings uses a Path instead of a PathBuf, reducing allocations - some unnecessary stuff removed, thanks clippy - that is all
68 lines
1.8 KiB
TOML
68 lines
1.8 KiB
TOML
[package]
|
|
name = "fif"
|
|
description = "A command-line tool for detecting and optionally correcting files with incorrect extensions."
|
|
version = "0.2.10"
|
|
authors = ["Lynnesbian <lynne@bune.city>"]
|
|
edition = "2018"
|
|
license = "GPL-3.0-or-later"
|
|
rust-version = "1.43.0" # cached breaks on 1.42.0, i think it needs https://github.com/rust-lang/rust/pull/67642/
|
|
repository = "https://git.bune.city/lynnesbian/fif"
|
|
readme = "README.md"
|
|
keywords = ["mime", "mimetype", "utilities", "tools"]
|
|
categories = ["command-line-utilities"]
|
|
exclude = [".idea/", "Cross.toml", "*.sh", "*.py", ".drone.yml"]
|
|
#resolver = "2"
|
|
#license-file = "LICENSE"
|
|
|
|
[badges]
|
|
maintenance = { status = "experimental" }
|
|
|
|
[features]
|
|
default = ["multi-threaded"]
|
|
multi-threaded = ["rayon"]
|
|
infer-backend = []
|
|
xdg-mime-backend = []
|
|
|
|
[dependencies]
|
|
walkdir = "2.3.1"
|
|
log = "0.4.14"
|
|
smartstring = "0.2.6"
|
|
mime_guess = "2.0.3"
|
|
snailquote = "0.3.0"
|
|
once_cell = "1.5.2"
|
|
infer = { version = "0.3.4" }
|
|
rayon = { version = "1.5.0", optional = true }
|
|
exitcode = "1.1.2"
|
|
cfg-if = "1.0.0"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
xdg-mime = "0.3"
|
|
|
|
[patch.crates-io]
|
|
# use git version while waiting on a release incorporating https://github.com/ebassi/xdg-mime-rs/commit/de5a6dd
|
|
xdg-mime = {git = "https://github.com/ebassi/xdg-mime-rs", version = "0.3", rev = "de5a6dd" }
|
|
|
|
[dependencies.clap]
|
|
version = "3.0.0-beta.2"
|
|
default-features = false
|
|
features = ["wrap_help", "color", "derive", "std"]
|
|
|
|
[dependencies.env_logger]
|
|
version = "0.8.2"
|
|
default-features = false
|
|
features = ["termcolor", "atty"]
|
|
|
|
[dependencies.cached]
|
|
version = "0.23.0"
|
|
default-features = false
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.2.0"
|
|
fastrand = "1.4.0"
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
|
|
# optimise dependencies, even when producing debug builds
|
|
[profile.dev.package."*"]
|
|
opt-level = 3
|