-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
50 lines (43 loc) · 1.19 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[package]
name = "wfetch"
version = "0.1.0"
edition = "2021"
build = "build.rs"
[dependencies]
chrono = "0.4.38"
clap = { version = "4.5.20", features = ["derive", "string"] }
clap_complete = "4.5.36"
crossterm = "0.28.1"
dirs = "5.0.1"
fast_image_resize = { version = "5.0.0", features = ["image", "rayon"] }
image = "0.25.4"
nix = { version = "0.29.0", features = ["process"] }
serde = { version = "1.0.214", features = ["derive"] }
serde_json = "1.0.132"
signal-hook = "0.3.17"
sysinfo = "0.32.0"
xterm-query = "0.5.0"
rexiv2 = { version = "0.10.0", optional = true }
[features]
default = ["nixos"]
nixos = []
iynaixos = ["rexiv2"]
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
enum_glob_use = "deny"
missing_errors_doc = { level = "allow", priority = 1 }
missing_panics_doc = { level = "allow", priority = 1 }
must_use_candidate = { level = "allow", priority = 1 }
nursery = { level = "deny", priority = -1 }
pedantic = { level = "deny", priority = -1 }
option_if_let_else = { level = "allow", priority = 1 }
unwrap_used = "deny"
# faster image operations in dev
[profile.dev.package.image]
opt-level = 3
[profile.dev.package.fast_image_resize]
opt-level = 3
[profile.release]
strip = true
lto = true