-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
55 lines (47 loc) · 1.32 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
51
52
53
54
55
[package]
name = "wfetch"
version = "0.1.0"
edition = "2021"
build = "build.rs"
[dependencies]
chrono = "0.4.39"
clap = { version = "4.5.27", features = ["derive", "string"] }
clap_complete = "4.5.44"
crossterm = "0.28.1"
dirs = "6.0.0"
fast_image_resize = { version = "5.1.1", features = ["image", "rayon"] }
image = "0.25.5"
nix = { version = "0.29.0", features = ["process"] }
rexiv2 = { version = "0.10.0", optional = true }
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.138"
signal-hook = "0.3.17"
sysinfo = "0.33.1"
xterm-query = "0.5.0"
[build-dependencies]
clap = { version = "4.5.27", features = ["derive", "string"] }
clap_complete = "4.5.44"
clap_mangen = "0.2.26"
[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