Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 32 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,38 @@ documentation = "https://github.com/vansour/rginx#readme"
readme = "README.md"
rust-version = "1.94.1"

[workspace.lints.clippy]
pedantic = "warn"

# Restriction lints: correctness and reliability.
arithmetic_side_effects = "warn"
as_conversions = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
error_impl_error = "warn"
indexing_slicing = "warn"
integer_division = "warn"
integer_division_remainder_used = "warn"
let_underscore_must_use = "warn"
map_err_ignore = "warn"
mem_forget = "warn"
missing_assert_message = "warn"
multiple_unsafe_ops_per_block = "warn"
return_and_then = "warn"
string_slice = "warn"
undocumented_unsafe_blocks = "warn"
unwrap_in_result = "warn"

# Restriction lints: stricter production hygiene.
create_dir = "warn"
expect_used = "warn"
float_arithmetic = "warn"
panic = "warn"
print_stderr = "warn"
print_stdout = "warn"
unreachable = "warn"
unwrap_used = "warn"

[workspace.dependencies]
anyhow = "1.0"
base64 = "0.22"
Expand Down
1 change: 1 addition & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
# policy surface.
msrv = "1.94.1"
too-many-arguments-threshold = 8
absolute-paths-max-segments = 4
3 changes: 3 additions & 0 deletions crates/rginx-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ readme.workspace = true
rust-version.workspace = true
description = "Remote edge control plane primitives for rginx."

[lints]
workspace = true

[dependencies]
rginx-config = { path = "../rginx-config" }
rginx-http = { path = "../rginx-http" }
Expand Down
Loading
Loading