From 48bead571337d1e314a5d5faf2ff89b6b48eba9f Mon Sep 17 00:00:00 2001 From: Raz Luvaton <16746759+rluvaton@users.noreply.github.com> Date: Wed, 13 May 2026 20:42:10 +0300 Subject: [PATCH] chore: enable `unreachable_pub` lint at workspace level Sets `unreachable_pub = "deny"` under `[workspace.lints.rust]` so the compiler flags items marked `pub` whose effective visibility is narrower than `pub` because of an enclosing `pub(crate)` or private module. This catches cases where `pub` reads as public API but the item is actually only reachable inside the crate, which is misleading when auditing the public surface. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 78c271d524fb8..88e4c5270966d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -225,6 +225,7 @@ unexpected_cfgs = { level = "warn", check-cfg = [ "cfg(tarpaulin_include)", ] } unused_qualifications = "deny" +unreachable_pub = "deny" # -------------------- # Compilation Profiles