Skip to content

Commit

Permalink
Cargo: Enable unreachable pub lint
Browse files Browse the repository at this point in the history
In order to prevent the problem that previous commit fixed, enable this
lint for all of our crates.
  • Loading branch information
Lorak-mmk committed Mar 14, 2024
1 parent c6f1cfb commit 247efff
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions scylla-cql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ num-bigint-03 = ["dep:num-bigint-03"]
num-bigint-04 = ["dep:num-bigint-04"]
bigdecimal-04 = ["dep:bigdecimal-04"]
full-serialization = ["chrono", "time", "secret", "num-bigint-03", "num-bigint-04", "bigdecimal-04"]

[lints.rust]
unreachable_pub = "deny"
5 changes: 4 additions & 1 deletion scylla-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ proc-macro = true
darling = "0.20.0"
syn = "2.0"
quote = "1.0"
proc-macro2 = "1.0"
proc-macro2 = "1.0"

[lints.rust]
unreachable_pub = "deny"
2 changes: 2 additions & 0 deletions scylla-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ ntest = "0.9.0"
tracing-subscriber = { version = "0.3.14", features = ["env-filter"] }
tokio = { version = "1.12", features = ["signal"] }

[lints.rust]
unreachable_pub = "deny"
3 changes: 3 additions & 0 deletions scylla/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ time = "0.3"
[[bench]]
name = "benchmark"
harness = false

[lints.rust]
unreachable_pub = "deny"

0 comments on commit 247efff

Please sign in to comment.