-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
105 lines (87 loc) · 2.69 KB
/
Copy pathCargo.toml
File metadata and controls
105 lines (87 loc) · 2.69 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
[package]
name = "cake"
version = "0.1.0"
edition = "2024"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
[profile.optimized]
inherits = "release"
lto = false
codegen-units = 16
[dependencies]
anyhow = "1.0.103"
clap = { version = "4.6.1", features = ["derive"] }
dirs = "6.0"
futures = { version = "0.3", default-features = false, features = [
"std",
"async-await",
"executor",
] }
fs4 = "1.1"
hex = "0.4"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing-appender = "0.2"
reqwest = { version = "0.13.4", features = ["json"] }
serde = { version = "1.0.228", features = ["derive"] }
sha2 = "0.11"
serde_json = "1.0.150"
serde_yaml = "0.9"
toml = "1.1"
thiserror = "2.0.18"
libc = "0.2"
tempfile = "3"
tokio = { version = "1.52.3", features = ["full"] }
uuid = { version = "1.23", features = ["v4"] }
chrono = { version = "0.4.45", features = ["serde"] }
similar = { version = "3.1.1", features = ["inline"] }
infer = { version = "0.22.0", default-features = false }
jsonschema = { version = "0.49.2", default-features = false }
[target.'cfg(target_os = "linux")'.dependencies]
landlock = "0.4.5"
[dev-dependencies]
insta = { version = "1", features = ["filters", "json"] }
temp-env = "0.3"
tempfile = "3"
wiremock = "0.6"
# Enforce code quality standards across the workspace
[lints.rust]
# Binary crate - missing_docs produces noise without producing useful public API docs.
missing_docs = "allow"
# Catch common mistakes
rust_2018_idioms = { level = "warn", priority = -1 }
missing_debug_implementations = "warn"
[lints.clippy]
# Error handling - no unwrap/expect in production code
unwrap_used = "deny"
expect_used = "deny"
# Pedantic and nursery for strict quality
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
# Allow some noisy ones
missing_docs_in_private_items = "allow"
missing_errors_doc = "deny"
# Coding-agent guardrails: require #[expect(..., reason = "...")] instead of #[allow]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
# Cognitive-complexity ceiling for production code (threshold in clippy.toml;
# grandfathered functions carry #[expect(clippy::cognitive_complexity)]).
cognitive_complexity = "warn"
# Panic prevention (restriction category, high-value)
string_slice = "warn"
# Silent failure prevention
let_underscore_must_use = "warn"
# Error handling
unused_result_ok = "warn"
# Unsafe hygiene
undocumented_unsafe_blocks = "warn"
# Additional quality checks
enum_glob_use = "deny"
exit = "deny"
if_then_some_else_none = "warn"
map_err_ignore = "warn"
implicit_clone = "warn"