forked from qarmin/czkawka
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
48 lines (42 loc) · 1.55 KB
/
Copy pathCargo.toml
File metadata and controls
48 lines (42 loc) · 1.55 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
[workspace]
members = [
"czkawka_core",
"czkawka_cli",
"czkawka_gui",
"krokiet"
]
exclude = [
"misc/test_read_perf",
"misc/test_image_perf",
"ci_tester",
]
resolver = "3"
[profile.release]
# panic = "unwind" in opposite to "abort", allows to catch panic!()
# Since Czkawka parse different types of files with few libraries, it is possible
# that some files will cause crash, so at this moment I don't recommend to use "abort"
# until you are ready to occasional crashes
panic = "unwind"
# Should find more panics, that now are hidden from user - in long term it should decrease bugs in app
# There is one big disadvantage - in case of overflow/underflow entire app crashes and not everywhere I catch this panic so app aborts
# So feel free to disable it, if you want
overflow-checks = true
# LTO setting is disabled by default, because release mode is usually needed to develop app and compilation with LTO would take a lot of time
# But it is used to optimize release builds(and probably also in CI, where time is not so important as in local development)
#lto = "thin"
# Optimize all dependencies except application/workspaces, even in debug builds
[profile.dev.package."*"] # OPT PACKAGES
opt-level = 3 # OPT PACKAGES
[profile.test]
debug-assertions = true # Forces to crash when there is duplicated item in cli
overflow-checks = true
opt-level = 3
# Unsafe profile, just to check, how fast and small app could be
[profile.fastest]
inherits = "release"
panic = "abort"
lto = "thin"
strip = "symbols"
codegen-units = 1
opt-level = 3
debug = false