diff --git a/Cargo.toml b/Cargo.toml index e6d414f8e..d19b25b0b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -109,6 +109,7 @@ uniffi_bindgen = { git = "https://github.com/mozilla/uniffi-rs", rev = "6d46b3f7 uniffi_build = { git = "https://github.com/mozilla/uniffi-rs", rev = "6d46b3f756dde3213357c477d86771a0fc5da7b4" } [workspace.lints.clippy] +disallowed-macros = "deny" unused_async = "deny" unwrap_used = "deny" string_slice = "warn" diff --git a/clippy.toml b/clippy.toml index a3e600af9..d89621140 100644 --- a/clippy.toml +++ b/clippy.toml @@ -8,3 +8,11 @@ Instead, prefer to hold a reference to bitwarden_core::KeyStore and use its encr If you require access to KeyStoreContext, create short-lived KeyStoreContext instances as needed. """ }, ] + +disallowed-macros = [ + { path = "log::trace", reason = "Use tracing for logging needs", replacement = "tracing::trace" }, + { path = "log::debug", reason = "Use tracing for logging needs", replacement = "tracing::debug" }, + { path = "log::info", reason = "Use tracing for logging needs", replacement = "tracing::info" }, + { path = "log::warn", reason = "Use tracing for logging needs", replacement = "tracing::warn" }, + { path = "log::error", reason = "Use tracing for logging needs", replacement = "tracing::error" }, +]