Skip to content

Commit

Permalink
server: Warn on dbg! and todo! macros
Browse files Browse the repository at this point in the history
These are useful for local development / debugging, but should not be
committed.
  • Loading branch information
svix-jplatte committed Feb 28, 2024
1 parent 76db4f5 commit c0e44d5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
members = ["svix-server", "svix-server_derive"]
resolver = "2"

[workspace.lints.clippy]
dbg_macro = "warn"
todo = "warn"

[patch.crates-io]
hyper = { git = "https://github.com/svix/hyper/", rev = "63efac5a6719937359d61a1bb1b93d9ce88f0e3d" }
3 changes: 3 additions & 0 deletions server/svix-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,6 @@ axum-server = { version = "0.5", features = ["tls-openssl"] }
[features]
default = ["jemalloc"]
jemalloc = ["dep:tikv-jemallocator"]

[lints]
workspace = true
3 changes: 3 additions & 0 deletions server/svix-server_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ proc-macro = true
proc-macro2 = "1.0.78"
quote = "1.0.15"
syn = "2.0.48"

[lints]
workspace = true

0 comments on commit c0e44d5

Please sign in to comment.