-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathCargo.toml
More file actions
92 lines (81 loc) · 2.08 KB
/
Cargo.toml
File metadata and controls
92 lines (81 loc) · 2.08 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
[workspace]
members = [
"crates/rari",
"tools/prepare-binaries",
"tools/release",
]
resolver = "2"
[workspace.package]
authors = [ "Ryan Skinner" ]
edition = "2024"
license = "MIT"
repository = "https://github.com/rari-build/rari"
[workspace.lints.clippy]
# Restriction rules for better code quality
allow_attributes = "deny"
dbg_macro = "deny"
print_stdout = "deny"
clone_on_ref_ptr = "deny"
empty_drop = "deny"
exit = "deny"
filetype_is_file = "deny"
get_unwrap = "deny"
rc_buffer = "deny"
rc_mutex = "deny"
rest_pat_in_fully_bound_structs = "deny"
unnecessary_safety_comment = "deny"
# Pedantic rules
pedantic = { level = "warn", priority = -1 }
# Pedantic overrides - allow rules that are too noisy or not valuable
case_sensitive_file_extension_comparisons = "allow"
module_inception = "allow"
module_name_repetitions = "allow"
similar_names = "allow"
missing_errors_doc = "allow"
must_use_candidate = "allow"
doc_markdown = "allow"
missing_const_for_fn = "allow"
needless_for_each = "allow"
new_without_default = "allow"
missing_panics_doc = "allow"
inconsistent_struct_constructor = "allow"
single_match = "allow"
single_match_else = "allow"
map_unwrap_or = "allow"
collapsible_if = "allow"
# Nursery rules that are useful
debug_assert_with_mut_call = "warn"
iter_on_single_items = "warn"
needless_pass_by_ref_mut = "warn"
redundant_clone = "warn"
redundant_pub_crate = "warn"
significant_drop_in_scrutinee = "warn"
unused_peekable = "warn"
[workspace.dependencies]
tokio = { version = "1.50.0", features = [
"full",
"process"
] }
anyhow = "1.0.102"
clap = { version = "4.6.0", features = [ "derive" ] }
colored = "3.1.1"
serde = { version = "1.0.228", features = [ "derive" ] }
serde_json = "1.0.149"
regex = "1.12.3"
[profile.dev]
# Minimal debug info to speed up local and CI builds
debug = "line-tables-only"
[profile.dev.package.num-bigint-dig]
opt-level = 3
[profile.test]
# Minimal debug info to speed up test builds
debug = "line-tables-only"
[profile.release]
codegen-units = 1
debug = false
lto = "fat"
opt-level = 3
strip = "symbols"
[profile.release-debug]
debug = true
inherits = "release"