diff --git a/.github/workflows/ci_checks.yml b/.github/workflows/ci_checks.yml index 06504b6..29c491e 100644 --- a/.github/workflows/ci_checks.yml +++ b/.github/workflows/ci_checks.yml @@ -1,6 +1,6 @@ name: CI Checks -on: [push, pull_request] +on: [push, pull_request, workflow_dispatch] env: CARGO_TERM_COLOR: always @@ -25,7 +25,7 @@ jobs: - windows-latest runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} @@ -37,7 +37,7 @@ jobs: name: Linting runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 with: submodules: true - uses: dtolnay/rust-toolchain@stable @@ -49,7 +49,7 @@ jobs: name: Formatting runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 with: submodules: true - uses: dtolnay/rust-toolchain@stable diff --git a/.vscode/settings.json b/.vscode/settings.json index 2ada140..7a9f48b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "rust-analyzer.cargo.target": "thumbv8m.main-none-eabihf", "rust-analyzer.check.allTargets": false, + "rust-analyzer.check.command": "clippy", "editor.formatOnSave": true -} +} \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 0a3c6a8..b9205f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,10 @@ edition = "2024" name = "rp235x-project-template" version = "0.1.0" license = "MIT OR Apache-2.0" +description = "Project template for rp235x-hal" +repository = "https://github.com/rp-rs/rp235x-project-template" +keywords = ["embedded", "rp235x", "hal", "rust", "no-std"] +categories = ["embedded", "no-std"] [dependencies] cortex-m = "0.7" @@ -64,3 +68,12 @@ debug = 2 debug-assertions = false lto = 'fat' opt-level = 3 + +[lints.clippy] +all = { level = "warn", priority = -1 } +pedantic = { level = "warn", priority = -1 } +multiple_crate_versions = "allow" + +nursery = { level = "warn", priority = -1 } +cargo = { level = "warn", priority = -1 } +# restriction = { level = "warn", priority = -1 } diff --git a/build.rs b/build.rs index a021f2a..5f94a82 100644 --- a/build.rs +++ b/build.rs @@ -9,7 +9,7 @@ //! new memory settings. use std::fs::File; -use std::io::Write; +use std::io::Write as _; use std::path::PathBuf; fn main() { diff --git a/src/main.rs b/src/main.rs index 82ca3ed..0053486 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ #![no_std] #![no_main] -use defmt::*; +use defmt::info; use defmt_rtt as _; use embedded_hal::digital::OutputPin; use panic_probe as _;