-
Notifications
You must be signed in to change notification settings - Fork 70
/
Cargo.toml
47 lines (39 loc) · 1.15 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
[workspace]
# cargo complains that this defaults to one in virtual package manifests (for some reason)
resolver = "2"
members = ["client", "daemon", "common"]
default-members = ["client", "daemon"]
[workspace.package]
version = "0.9.5-masterV3"
authors = ["Leonardo Gibrowski Faé <[email protected]>"]
edition = "2021"
license-file = "LICENSE"
rust-version = "1.80"
[workspace.dependencies]
common = { path = "common" }
[workspace.lints.clippy]
correctness = { level = "deny", priority = -1 }
suspicious = { level = "deny", priority = -1 }
perf = { level = "deny", priority = -1 }
style = { level = "deny", priority = -1 }
complexity = { level = "warn", priority = -1 }
#pedantic = { level = "warn", priority = -1 }
module-name-repetitions = "allow"
missing-errors-doc = "allow"
missing-panics-doc = "allow"
# Enable some optimizations in debug mode. Otherwise, it is a pain to test it
[profile.dev]
opt-level = 1
# Enable high optimizations for dependencies, but not for our code:
[profile.dev.package."*"]
opt-level = 3
[profile.release]
debug = 0
lto = true
opt-level = 3
codegen-units = 1
strip = true
[profile.bench]
lto = "thin"
debug = 1
strip = false