-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
86 lines (76 loc) · 1.86 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
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
[workspace]
resolver = "2"
members = [
"channels-io",
"channels-macros",
"channels-packet",
"channels-serdes",
"channels",
"benches",
"examples",
"examples/chat-app",
"examples/stdio",
"stress-tests",
"tests-integration",
"perf",
]
default-members = [
"channels-io",
"channels-macros",
"channels-packet",
"channels-serdes",
"channels",
]
[workspace.dependencies]
channels = { path = "./channels", features = ["full"] }
############################
######## Lints ##########
############################
[workspace.lints.rust]
missing_docs = "deny"
arithmetic_overflow = "warn"
missing_debug_implementations = "warn"
unexpected_cfgs = "allow"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
style = { level = "warn", priority = -1 }
cargo = { level = "warn", priority = -1 }
perf = { level = "warn", priority = -1 }
correctness = { level = "warn", priority = -1 }
complexity = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
suspicious = { level = "warn", priority = -1 }
cast_lossless = "warn"
cast_possible_wrap = "warn"
useless_conversion = "warn"
wrong_self_convention = "warn"
missing_assert_message = "warn"
unwrap_used = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
alloc_instead_of_core = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
error_impl_error = "warn"
new_without_default = "allow"
module_name_repetitions = "allow"
missing_errors_doc = "allow"
[workspace.lints.rustdoc]
all = "warn"
broken_intra_doc_links = "warn"
missing_crate_level_docs = "warn"
############################
######## Profiles ##########
############################
[profile.dev]
debug = 0
[profile.release]
incremental = true
debug = 0
[profile.perf]
inherits = "release"
incremental = false
debug = true
opt-level = 3
lto = "fat"
codegen-units = 1