fif/Cargo.toml

50 lines
1.3 KiB
TOML
Raw Normal View History

2021-02-04 11:22:19 +00:00
[package]
name = "fif"
description = "A command-line tool for detecting and optionally correcting files with incorrect extensions."
version = "0.2.0"
2021-02-04 11:22:19 +00:00
authors = ["Lynnesbian <lynne@bune.city>"]
edition = "2018"
license = "GPL-3.0-or-later"
rust-version = "1.43.0" # cached requires 1.42.0
#resolver = "2"
2021-02-05 06:05:33 +00:00
#license-file = "LICENSE"
2021-02-04 11:22:19 +00:00
[features]
default = ["multi-threaded", "infer-backend"]
multi-threaded = ["rayon"]
infer-backend = ["infer"]
xdg-mime-backend = ["xdg-mime"]
2021-02-04 11:22:19 +00:00
[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"
rayon = { version = "1.5.0", optional = true }
infer = { version = "0.3.4", optional = true }
# 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", optional = true }
[dependencies.clap]
version = "3.0.0-beta.2"
default-features = false
features = ["wrap_help", "color", "derive", "std"]
2021-02-05 13:34:02 +00:00
[dependencies.env_logger]
version = "0.8.2"
default-features = false
features = ["termcolor", "atty"]
[dependencies.cached]
version = "0.23.0"
default-features = false
2021-02-05 13:34:02 +00:00
[profile.release]
lto = "thin"
# optimise dependencies, even when producing debug builds
[profile.dev.package."*"]
opt-level = 3