2021-02-04 11:22:19 +00:00
|
|
|
[package]
|
|
|
|
name = "fif"
|
2021-02-14 16:20:48 +00:00
|
|
|
description = "A command-line tool for detecting and optionally correcting files with incorrect extensions."
|
2021-04-04 13:52:16 +00:00
|
|
|
version = "0.2.11"
|
2021-02-04 11:22:19 +00:00
|
|
|
authors = ["Lynnesbian <lynne@bune.city>"]
|
|
|
|
edition = "2018"
|
2021-02-05 05:57:21 +00:00
|
|
|
license = "GPL-3.0-or-later"
|
2021-02-28 11:01:22 +00:00
|
|
|
rust-version = "1.43.0" # cached breaks on 1.42.0, i think it needs https://github.com/rust-lang/rust/pull/67642/
|
2021-02-21 15:55:27 +00:00
|
|
|
repository = "https://git.bune.city/lynnesbian/fif"
|
|
|
|
readme = "README.md"
|
|
|
|
keywords = ["mime", "mimetype", "utilities", "tools"]
|
|
|
|
categories = ["command-line-utilities"]
|
2021-04-06 19:20:49 +00:00
|
|
|
exclude = [".idea/", "Cross.toml", "*.sh", "*.py", ".drone.yml", "pkg/"]
|
2021-02-14 16:20:48 +00:00
|
|
|
#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" }
|
|
|
|
|
2021-02-06 11:51:20 +00:00
|
|
|
[features]
|
2021-02-27 02:02:49 +00:00
|
|
|
default = ["multi-threaded"]
|
2021-02-14 19:20:04 +00:00
|
|
|
multi-threaded = ["rayon"]
|
2021-02-27 02:02:49 +00:00
|
|
|
infer-backend = []
|
|
|
|
xdg-mime-backend = []
|
2021-02-06 11:51:20 +00:00
|
|
|
|
2021-02-04 11:22:19 +00:00
|
|
|
[dependencies]
|
2021-04-14 06:29:38 +00:00
|
|
|
walkdir = "2.3.2"
|
2021-02-04 11:22:19 +00:00
|
|
|
log = "0.4.14"
|
|
|
|
mime_guess = "2.0.3"
|
2021-02-10 09:20:22 +00:00
|
|
|
snailquote = "0.3.0"
|
2021-04-14 06:29:38 +00:00
|
|
|
once_cell = "1.7.2"
|
|
|
|
infer = "0.3.6"
|
2021-02-14 19:20:04 +00:00
|
|
|
rayon = { version = "1.5.0", optional = true }
|
2021-02-21 14:07:50 +00:00
|
|
|
exitcode = "1.1.2"
|
2021-02-27 02:02:49 +00:00
|
|
|
cfg-if = "1.0.0"
|
2021-02-19 18:02:54 +00:00
|
|
|
|
2021-03-02 15:12:29 +00:00
|
|
|
[target.'cfg(unix)'.dependencies]
|
2021-04-14 06:29:38 +00:00
|
|
|
xdg-mime = "0.3.2"
|
2021-02-28 09:47:18 +00:00
|
|
|
|
2021-04-02 17:51:49 +00:00
|
|
|
[target.'cfg(not(all(target_endian = "big", target_pointer_width = "32")))'.dependencies]
|
|
|
|
smartstring = "0.2.6"
|
|
|
|
|
2021-02-28 09:47:18 +00:00
|
|
|
[patch.crates-io]
|
2021-02-14 18:58:57 +00:00
|
|
|
# use git version while waiting on a release incorporating https://github.com/ebassi/xdg-mime-rs/commit/de5a6dd
|
2021-04-04 13:52:16 +00:00
|
|
|
xdg-mime = { git = "https://github.com/ebassi/xdg-mime-rs", version = "0.3", rev = "de5a6dd" }
|
2021-04-04 12:42:34 +00:00
|
|
|
# forked version with many more mime types
|
2021-04-04 13:52:16 +00:00
|
|
|
mime_guess = { git = "https://github.com/Lynnesbian/mime_guess", version = "2.0.4" }
|
2021-02-05 12:45:51 +00:00
|
|
|
|
|
|
|
[dependencies.clap]
|
|
|
|
version = "3.0.0-beta.2"
|
2021-02-11 15:43:47 +00:00
|
|
|
default-features = false
|
|
|
|
features = ["wrap_help", "color", "derive", "std"]
|
2021-02-05 13:34:02 +00:00
|
|
|
|
|
|
|
[dependencies.env_logger]
|
2021-04-14 06:29:38 +00:00
|
|
|
version = "0.8.3"
|
2021-02-05 13:34:02 +00:00
|
|
|
default-features = false
|
|
|
|
features = ["termcolor", "atty"]
|
|
|
|
|
2021-02-10 09:20:22 +00:00
|
|
|
[dependencies.cached]
|
|
|
|
version = "0.23.0"
|
|
|
|
default-features = false
|
|
|
|
|
2021-02-28 09:47:18 +00:00
|
|
|
[dev-dependencies]
|
|
|
|
tempfile = "3.2.0"
|
2021-03-25 18:46:07 +00:00
|
|
|
fastrand = "1.4.0"
|
2021-02-28 09:47:18 +00:00
|
|
|
|
2021-02-05 13:34:02 +00:00
|
|
|
[profile.release]
|
2021-02-06 11:48:31 +00:00
|
|
|
lto = "thin"
|
2021-02-10 09:20:22 +00:00
|
|
|
|
2021-04-08 13:33:33 +00:00
|
|
|
[profile.test]
|
|
|
|
opt-level = 0
|
|
|
|
|
2021-02-10 09:20:22 +00:00
|
|
|
# optimise dependencies, even when producing debug builds
|
|
|
|
[profile.dev.package."*"]
|
|
|
|
opt-level = 3
|