fif/Cargo.toml

78 lines
1.9 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.12"
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 breaks on 1.42.0, i think it needs https://github.com/rust-lang/rust/pull/67642/
2021-04-21 07:29:13 +00:00
repository = "https://gitlab.com/Lynnesbian/fif"
readme = "README.md"
keywords = ["mime", "mimetype", "utilities", "tools"]
categories = ["command-line-utilities"]
exclude = [".idea/", "Cross.toml", "*.sh", "*.py", ".drone.yml", "pkg/"]
#resolver = "2"
2021-02-05 06:05:33 +00:00
#license-file = "LICENSE"
2021-02-04 11:22:19 +00:00
2021-03-01 10:20:46 +00:00
[badges]
maintenance = { status = "experimental" }
[features]
default = ["multi-threaded"]
multi-threaded = ["rayon"]
infer-backend = []
xdg-mime-backend = []
2021-02-04 11:22:19 +00:00
[dependencies]
walkdir = "2.3.2"
2021-02-04 11:22:19 +00:00
log = "0.4.14"
mime_guess = "2.0.3"
snailquote = "0.3.0"
once_cell = "1.7.2"
infer = "0.4.0"
rayon = { version = "1.5.0", optional = true }
2021-02-21 14:07:50 +00:00
exitcode = "1.1.2"
cfg-if = "1.0.0"
itertools = "0.10.0"
[target.'cfg(unix)'.dependencies]
xdg-mime = "0.3.3"
[target.'cfg(not(all(target_endian = "big", target_pointer_width = "32")))'.dependencies]
smartstring = "0.2.6"
[patch.crates-io]
# forked version with many more mime types
mime_guess = { git = "https://github.com/Lynnesbian/mime_guess", version = "2.0.4" }
[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.3"
2021-02-05 13:34:02 +00:00
default-features = false
features = ["termcolor", "atty"]
[dependencies.cached]
version = "0.23.0"
default-features = false
[dev-dependencies]
tempfile = "3.2.0"
fastrand = "1.4.1"
2021-02-05 13:34:02 +00:00
[profile.release]
lto = "thin"
[profile.test]
opt-level = 0
# optimise dependencies, even when producing debug and test builds
[profile.dev.package."*"]
opt-level = 3
[profile.test.package."*"]
opt-level = 3