mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Desktop native disallow log crate macros (#17163)
This commit is contained in:
2
apps/desktop/desktop_native/Cargo.lock
generated
2
apps/desktop/desktop_native/Cargo.lock
generated
@@ -454,7 +454,6 @@ dependencies = [
|
|||||||
"tokio",
|
"tokio",
|
||||||
"tracing",
|
"tracing",
|
||||||
"tracing-subscriber",
|
"tracing-subscriber",
|
||||||
"verifysign",
|
|
||||||
"windows 0.61.1",
|
"windows 0.61.1",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -621,6 +620,7 @@ dependencies = [
|
|||||||
"tokio",
|
"tokio",
|
||||||
"tracing",
|
"tracing",
|
||||||
"tracing-subscriber",
|
"tracing-subscriber",
|
||||||
|
"verifysign",
|
||||||
"windows 0.61.1",
|
"windows 0.61.1",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -86,10 +86,13 @@ zbus_polkit = "=5.0.0"
|
|||||||
zeroizing-alloc = "=0.1.0"
|
zeroizing-alloc = "=0.1.0"
|
||||||
|
|
||||||
[workspace.lints.clippy]
|
[workspace.lints.clippy]
|
||||||
|
disallowed-macros = "deny"
|
||||||
|
|
||||||
# Dis-allow println and eprintln, which are typically used in debugging.
|
# Dis-allow println and eprintln, which are typically used in debugging.
|
||||||
# Use `tracing` and `tracing-subscriber` crates for observability needs.
|
# Use `tracing` and `tracing-subscriber` crates for observability needs.
|
||||||
print_stderr = "deny"
|
print_stderr = "deny"
|
||||||
print_stdout = "deny"
|
print_stdout = "deny"
|
||||||
|
|
||||||
string_slice = "warn"
|
string_slice = "warn"
|
||||||
unused_async = "deny"
|
unused_async = "deny"
|
||||||
unwrap_used = "deny"
|
unwrap_used = "deny"
|
||||||
|
|||||||
@@ -1,2 +1,10 @@
|
|||||||
allow-unwrap-in-tests=true
|
allow-unwrap-in-tests=true
|
||||||
allow-expect-in-tests=true
|
allow-expect-in-tests=true
|
||||||
|
|
||||||
|
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" },
|
||||||
|
]
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#![cfg(target_os = "macos")]
|
#![cfg(target_os = "macos")]
|
||||||
|
#![allow(clippy::disallowed_macros)] // uniffi macros trip up clippy's evaluation
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashMap,
|
collections::HashMap,
|
||||||
|
|||||||
Reference in New Issue
Block a user