diff --git a/Cargo.toml b/Cargo.toml index bb40a26e..0a4edd0e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,3 +23,6 @@ repository = "https://github.com/getsentry/sentry-rust" homepage = "https://sentry.io/welcome/" edition = "2021" rust-version = "1.88" + +[workspace.lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(doc_cfg)'] } diff --git a/sentry-actix/Cargo.toml b/sentry-actix/Cargo.toml index 3bdce1a8..7e39a617 100644 --- a/sentry-actix/Cargo.toml +++ b/sentry-actix/Cargo.toml @@ -12,6 +12,9 @@ Sentry integration for actix-web 4. edition = { workspace = true } rust-version = { workspace = true } +[lints] +workspace = true + [features] default = ["release-health"] release-health = ["sentry-core/release-health"] diff --git a/sentry-anyhow/Cargo.toml b/sentry-anyhow/Cargo.toml index ed4fd708..11fcd2fd 100644 --- a/sentry-anyhow/Cargo.toml +++ b/sentry-anyhow/Cargo.toml @@ -12,6 +12,9 @@ Sentry integration for anyhow. edition = { workspace = true } rust-version = { workspace = true } +[lints] +workspace = true + [features] default = ["backtrace"] backtrace = [] diff --git a/sentry-backtrace/Cargo.toml b/sentry-backtrace/Cargo.toml index fb8dec37..bbd89687 100644 --- a/sentry-backtrace/Cargo.toml +++ b/sentry-backtrace/Cargo.toml @@ -12,6 +12,9 @@ Sentry integration and utilities for dealing with stacktraces. edition = { workspace = true } rust-version = { workspace = true } +[lints] +workspace = true + [dependencies] backtrace = "0.3.44" regex = { version = "1.5.5", default-features = false, features = [ diff --git a/sentry-contexts/Cargo.toml b/sentry-contexts/Cargo.toml index b671f2e0..fffd0275 100644 --- a/sentry-contexts/Cargo.toml +++ b/sentry-contexts/Cargo.toml @@ -13,6 +13,9 @@ build = "build.rs" edition = { workspace = true } rust-version = { workspace = true } +[lints] +workspace = true + [dependencies] sentry-core = { version = "0.48.1", path = "../sentry-core" } libc = "0.2.66" diff --git a/sentry-core/Cargo.toml b/sentry-core/Cargo.toml index e300f6be..5b188f93 100644 --- a/sentry-core/Cargo.toml +++ b/sentry-core/Cargo.toml @@ -12,6 +12,9 @@ Core Sentry library used for instrumentation and integration development. edition = { workspace = true } rust-version = { workspace = true } +[lints] +workspace = true + [package.metadata.docs.rs] all-features = true diff --git a/sentry-debug-images/Cargo.toml b/sentry-debug-images/Cargo.toml index 5c7f4b72..31f6285b 100644 --- a/sentry-debug-images/Cargo.toml +++ b/sentry-debug-images/Cargo.toml @@ -12,6 +12,9 @@ Sentry integration that adds the list of loaded libraries to events. edition = { workspace = true } rust-version = { workspace = true } +[lints] +workspace = true + [dependencies] findshlibs = "=0.10.2" sentry-core = { version = "0.48.1", path = "../sentry-core" } diff --git a/sentry-log/Cargo.toml b/sentry-log/Cargo.toml index e9017e2e..f824bd11 100644 --- a/sentry-log/Cargo.toml +++ b/sentry-log/Cargo.toml @@ -12,6 +12,9 @@ Sentry integration for the log and env_logger crates. edition = { workspace = true } rust-version = { workspace = true } +[lints] +workspace = true + [features] default = [] logs = ["sentry-core/logs"] diff --git a/sentry-opentelemetry/Cargo.toml b/sentry-opentelemetry/Cargo.toml index ab37f047..ed2917bf 100644 --- a/sentry-opentelemetry/Cargo.toml +++ b/sentry-opentelemetry/Cargo.toml @@ -12,6 +12,9 @@ Sentry integration for OpenTelemetry. edition = { workspace = true } rust-version = { workspace = true } +[lints] +workspace = true + [package.metadata.docs.rs] all-features = true diff --git a/sentry-panic/Cargo.toml b/sentry-panic/Cargo.toml index 85495e5d..fef786f2 100644 --- a/sentry-panic/Cargo.toml +++ b/sentry-panic/Cargo.toml @@ -12,6 +12,9 @@ Sentry integration for capturing panics. edition = { workspace = true } rust-version = { workspace = true } +[lints] +workspace = true + [dependencies] sentry-core = { version = "0.48.1", path = "../sentry-core", features = ["client"] } sentry-backtrace = { version = "0.48.1", path = "../sentry-backtrace" } diff --git a/sentry-slog/Cargo.toml b/sentry-slog/Cargo.toml index ca88cd6a..7bb254b6 100644 --- a/sentry-slog/Cargo.toml +++ b/sentry-slog/Cargo.toml @@ -12,6 +12,9 @@ Sentry integration for the slog crate. edition = { workspace = true } rust-version = { workspace = true } +[lints] +workspace = true + [dependencies] sentry-core = { version = "0.48.1", path = "../sentry-core" } slog = { version = "2.5.2", features = ["nested-values"] } diff --git a/sentry-tower/Cargo.toml b/sentry-tower/Cargo.toml index 1f57bdc0..6a68b936 100644 --- a/sentry-tower/Cargo.toml +++ b/sentry-tower/Cargo.toml @@ -12,6 +12,9 @@ Sentry integration for tower-based crates. edition = { workspace = true } rust-version = { workspace = true } +[lints] +workspace = true + [package.metadata.docs.rs] all-features = true diff --git a/sentry-tracing/Cargo.toml b/sentry-tracing/Cargo.toml index eec19546..142a6f0f 100644 --- a/sentry-tracing/Cargo.toml +++ b/sentry-tracing/Cargo.toml @@ -12,6 +12,9 @@ Sentry integration for the tracing and tracing-subscriber crates. edition = { workspace = true } rust-version = { workspace = true } +[lints] +workspace = true + [package.metadata.docs.rs] all-features = true diff --git a/sentry-types/Cargo.toml b/sentry-types/Cargo.toml index 4dd335a4..ac4b935b 100644 --- a/sentry-types/Cargo.toml +++ b/sentry-types/Cargo.toml @@ -13,6 +13,9 @@ keywords = ["sentry", "protocol"] edition = { workspace = true } rust-version = { workspace = true } +[lints] +workspace = true + [package.metadata.docs.rs] all-features = true diff --git a/sentry/Cargo.toml b/sentry/Cargo.toml index ebe94fc2..bdc1583f 100644 --- a/sentry/Cargo.toml +++ b/sentry/Cargo.toml @@ -107,8 +107,8 @@ tower = { version = "0.5.2", features = ["util"] } tracing = { version = "0.1" } tracing-subscriber = { version = "0.3", features = ["fmt", "tracing-log"] } -[lints.rust] -unexpected_cfgs = { level = "warn", check-cfg = ['cfg(doc_cfg)'] } +[lints] +workspace = true [build-dependencies] cfg_aliases = "0.2.1"