Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ opentelemetry-semantic-conventions = { version = "0.28", features = [
"semconv_experimental",
] }
criterion = "0.5"

[workspace.lints.clippy]
all = { level = "warn", priority = 1 }
3 changes: 3 additions & 0 deletions examples/traceresponse/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ opentelemetry_sdk = { workspace = true }
opentelemetry-http = { workspace = true }
opentelemetry-contrib = { path = "../../opentelemetry-contrib" }
opentelemetry-stdout = { workspace = true, features = ["trace"] }

[lints]
workspace = true
2 changes: 2 additions & 0 deletions opentelemetry-aws/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ sealed_test = "1.1.0"
[package.metadata.cargo-machete]
ignored = ["tracing"]

[lints]
workspace = true
3 changes: 3 additions & 0 deletions opentelemetry-contrib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ pprof = { version = "0.13", features = ["flamegraph", "criterion"] }
name = "new_span"
harness = false
required-features = ["api"]

[lints]
workspace = true
3 changes: 3 additions & 0 deletions opentelemetry-datadog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ path = "examples/datadog.rs"
name = "agent_sampling"
path = "examples/agent_sampling.rs"
required-features = ["agent-sampling"]

[lints]
workspace = true
3 changes: 3 additions & 0 deletions opentelemetry-etw-logs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ default = ["logs_level_enabled"]
[[example]]
name = "basic"
path = "examples/basic.rs"

[lints]
workspace = true
3 changes: 3 additions & 0 deletions opentelemetry-etw-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ ignored = ["tracing"]
[[bench]]
name = "exporter"
harness = false

[lints]
workspace = true
3 changes: 3 additions & 0 deletions opentelemetry-resource-detectors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ opentelemetry-semantic-conventions = { workspace = true }

[dev-dependencies]
temp-env = "0.3.6"

[lints]
workspace = true
3 changes: 3 additions & 0 deletions opentelemetry-stackdriver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ opentelemetry = { workspace = true, features = ["testing"] }

[package.metadata.cargo-machete]
ignored = ["tracing"]

[lints]
workspace = true
3 changes: 3 additions & 0 deletions opentelemetry-user-events-logs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ microbench = "0.5"
[features]
spec_unstable_logs_enabled = ["opentelemetry/spec_unstable_logs_enabled", "opentelemetry_sdk/spec_unstable_logs_enabled", "opentelemetry-appender-tracing/spec_unstable_logs_enabled"]
default = ["spec_unstable_logs_enabled"]

[lints]
workspace = true
5 changes: 4 additions & 1 deletion opentelemetry-user-events-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ internal-logs = ["tracing", "opentelemetry/internal-logs", "opentelemetry_sdk/in
default = ["internal-logs"]

[package.metadata.cargo-machete]
ignored = ["tracing"]
ignored = ["tracing"]

[lints]
workspace = true
3 changes: 3 additions & 0 deletions opentelemetry-zpages/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ hyper = { version = "0.14", features = ["full"] }
[[example]]
name = "zpages"
path = "examples/zpages.rs"

[lints]
workspace = true
14 changes: 6 additions & 8 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ cargo_feature() {
}

if rustup component add clippy; then
cargo clippy --all-targets --all-features -- \
`# Exit with a nonzero code if there are clippy warnings` \
-Dwarnings
# Exit with a nonzero code if there are clippy warnings
cargo clippy --workspace --all-targets --all-features -- -Dwarnings

cargo_feature opentelemetry-aws "default"

Expand All @@ -30,11 +29,10 @@ if rustup component add clippy; then
cargo_feature opentelemetry-contrib "rt-tokio-current-thread"
cargo_feature opentelemetry-contrib "rt-async-std"

# TODO: Can re-enable once back in the workspace.
# cargo_feature opentelemetry-stackdriver "default"
# cargo_feature opentelemetry-stackdriver "yup-authorizer"
# cargo_feature opentelemetry-stackdriver "tls-native-roots"
# cargo_feature opentelemetry-stackdriver "tls-webpki-roots"
cargo_feature opentelemetry-stackdriver "default"
cargo_feature opentelemetry-stackdriver "gcp-authorizer"
cargo_feature opentelemetry-stackdriver "tls-native-roots"
cargo_feature opentelemetry-stackdriver "tls-webpki-roots"

cargo_feature opentelemetry-user-events-logs "default"
cargo_feature opentelemetry-user-events-logs "spec_unstable_logs_enabled"
Expand Down
3 changes: 3 additions & 0 deletions stress/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ stats = ["sysinfo"]

[profile.release]
debug = true

[lints]
workspace = true
Loading