-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
108 lines (85 loc) · 3.98 KB
/
Copy pathCargo.toml
File metadata and controls
108 lines (85 loc) · 3.98 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
cargo-features = [ "codegen-backend", "profile-rustflags", "trim-paths" ]
# cargo-features = ["codegen-backend"]
[package]
name = "archive_me_plz"
authors = [ "MrDwarf7", "Blake B. <github.com/MrDwarf7>" ]
version = "1.0.0"
edition = "2024"
description = "A simple CLI tool to mass archive files and directories"
license = "MIT"
readme = "README.md"
build = "build.rs"
[package.metadata.winresource]
OriginalFilename = "archive_me_plz.exe"
FileDescription = "A simple CLI tool to mass archive files and directories"
LegalCopyright = "Copyright © 2025 by Blake B. @github.com/MrDwarf7"
#CompanyName = "https://github.com/MrDwarf7"
# For running the main server as a watch call
# cargo watch -q -c -w src/ -x run
[target.'cfg(windows)'.build-dependencies]
windres = "0.2"
[build-dependencies]
winresource = "0.1.19"
windres = "0.2.2"
winapi = { version = "0.3.9" }
[dependencies]
anstyle = "1.0.10"
chrono = "0.4.39"
clap = { version = "4.5.23", features = [ "derive" ] }
futures = "0.3.31"
rayon = "1.10.0"
thiserror = "2.0.7"
tokio = { version = "1.42.0", features = [ "full", "tracing" ] }
tokio-stream = { version = "0.1.17", features = [ "full" ] }
tracing = "0.1.41"
tracing-subscriber = "0.3.19"
# crossbeam = { version = "0.8.4" }
######################################################################################################################################################
######################################################################################################################################################
[profile.dev]
opt-level = 1
codegen-units = 256
incremental = true
codegen-backend = "cranelift"
debug = "line-tables-only"
debug-assertions = true
overflow-checks = true
strip = "none" # true | false | "none" | "symbols" | "debuginfo" ## Leave off @ w. THIS IS NOT OBFUSCATION.
panic = "abort" # "unwind" | "abort"
lto = "off" # "false" ### # true | false | "off" | "thin" | "fat" ## Can't use with cranelift yet
trim-paths = "none"
# tune-cpu = "native"
######################################################################################################################################################
[profile.release]
opt-level = 3
codegen-units = 1
incremental = true
codegen-backend = "cranelift" # May break deps.
debug = "none"
debug-assertions = false
overflow-checks = false # debatable
strip = "symbols" # true | false | "none" | "symbols" | "debuginfo" ## Leave off @ w. THIS IS NOT OBFUSCATION.
panic = "unwind"
lto = "off" # true | false | "off" | "thin" | "fat" ## Can't use with cranelift yet
trim-paths = [ "diagnostics", "object" ]
# tune-cpu = "native"
######################################################################################################################################################
######################################################################################################################################################
[profile.dev.package."*"]
inherits = "release"
codegen-backend = "cranelift" #### May break deps. for external crates
[profile.release.package."*"]
inherits = "release"
codegen-backend = "cranelift" #### May break deps. for external crates??????
######################################################################################################################################################
######################################################################################################################################################
# Lint levels / priorities/priority
# 0 = forbid
# 1 = deny
# 2 = warn
# 3 = allow
[lints.rust]
# unsafe_code = { level = "forbid", priority = 0 }
# unsafe_code = "forbid"
[lints.clippy]
enum_glob_use = { level = "warn", priority = 2 }