diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml index 6aa66e985..e30eccc71 100644 --- a/.github/workflows/deployment.yaml +++ b/.github/workflows/deployment.yaml @@ -35,6 +35,10 @@ jobs: needs: test runs-on: ubuntu-latest + strategy: + matrix: + toolchain: [stable] + steps: - id: checkout name: Checkout Repository diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index abe6f0a60..124b13b5a 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -69,7 +69,7 @@ jobs: - id: lint name: Run Lint Checks - run: cargo clippy --tests --benches --examples --workspace --all-targets --all-features -- -D clippy::correctness -D clippy::suspicious -D clippy::complexity -D clippy::perf -D clippy::style -D clippy::pedantic + run: cargo clippy --tests --benches --examples --workspace --all-targets --all-features - id: docs name: Lint Documentation diff --git a/.vscode/settings.json b/.vscode/settings.json index caa48dd01..d27d562e8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,34 +2,20 @@ "[rust]": { "editor.formatOnSave": true }, - "[ignore]": { "rust-analyzer.cargo.extraEnv" : { - "RUSTFLAGS": "-Z profile -C codegen-units=1 -C inline-threshold=0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests", - "RUSTDOCFLAGS": "-Z profile -C codegen-units=1 -C inline-threshold=0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests", - "CARGO_INCREMENTAL": "0", - "RUST_BACKTRACE": "1" - }}, + "[ignore]": { + "rust-analyzer.cargo.extraEnv": { + "RUSTFLAGS": "-Z profile -C codegen-units=1 -C inline-threshold=0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests", + "RUSTDOCFLAGS": "-Z profile -C codegen-units=1 -C inline-threshold=0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests", + "CARGO_INCREMENTAL": "0", + "RUST_BACKTRACE": "1" + } + }, "rust-analyzer.checkOnSave": true, "rust-analyzer.check.command": "clippy", "rust-analyzer.check.allTargets": true, - "rust-analyzer.check.extraArgs": [ - "--", - "-D", - "clippy::correctness", - "-D", - "clippy::suspicious", - "-W", - "clippy::complexity", - "-W", - "clippy::perf", - "-W", - "clippy::style", - "-W", - "clippy::pedantic" - ], "evenBetterToml.formatter.allowedBlankLines": 1, "evenBetterToml.formatter.columnWidth": 130, "evenBetterToml.formatter.trailingNewline": true, "evenBetterToml.formatter.reorderKeys": true, "evenBetterToml.formatter.reorderArrays": true, - } \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index d43356ca4..3d0645ebf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3826,7 +3826,6 @@ dependencies = [ "torrust-tracker-torrent-repository", "tower 0.4.13", "tower-http", - "trace", "tracing", "tracing-subscriber", "url", @@ -3982,17 +3981,6 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" -[[package]] -name = "trace" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ad0c048e114d19d1140662762bfdb10682f3bc806d8be18af846600214dd9af" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "tracing" version = "0.1.40" diff --git a/Cargo.toml b/Cargo.toml index 47102a349..6fd61b6e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -77,7 +77,6 @@ torrust-tracker-primitives = { version = "3.0.0-develop", path = "packages/primi torrust-tracker-torrent-repository = { version = "3.0.0-develop", path = "packages/torrent-repository" } tower = { version = "0", features = ["timeout"] } tower-http = { version = "0", features = ["compression-full", "cors", "propagate-header", "request-id", "trace"] } -trace = "0" tracing = "0" tracing-subscriber = { version = "0", features = ["json"] } url = { version = "2", features = ["serde"] } @@ -115,3 +114,14 @@ opt-level = 3 [profile.release-debug] debug = true inherits = "release" + +[lints.clippy] +complexity = { level = "deny", priority = -1 } +correctness = { level = "deny", priority = -1 } +pedantic = { level = "deny", priority = -1 } +perf = { level = "deny", priority = -1 } +style = { level = "deny", priority = -1 } +suspicious = { level = "deny", priority = -1 } + +# temp allow this lint +needless_return = "allow"