diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 92c3e3dc..e1c0c956 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -41,7 +41,7 @@ jobs: - name: Install a stable toolchain with clippy run: rustup toolchain install stable --no-self-update --profile minimal --component clippy - name: Lint imxrt-hal - run: cargo clippy --features=${{ matrix.chips }} --package=imxrt-hal -- -D warnings + run: cargo clippy --features=${{ matrix.chips }} --features=defmt --package=imxrt-hal -- -D warnings # Indirectly checks & lints the HAL with the HAL's chip feature, and also # checks & lints the imxrt-log package. @@ -63,7 +63,7 @@ jobs: - name: Install a stable toolchain with clippy run: rustup toolchain install stable --no-self-update --profile minimal --component clippy - name: Lint imxrt-log - run: cargo clippy --features=${{ matrix.chips }} --package=imxrt-log --package=imxrt-hal -- -D warnings + run: cargo clippy --features=${{ matrix.chips }} --features=defmt --package=imxrt-log --package=imxrt-hal -- -D warnings # Lint and build examples for boards. examples: @@ -136,7 +136,7 @@ jobs: - name: Install a stable toolchain run: rustup toolchain install stable --no-self-update --profile minimal - name: Run unit, integration tests - run: cargo test --features=${{ matrix.chips }} --tests --package=imxrt-hal --package=imxrt-log + run: cargo test --features=${{ matrix.chips }} --features=defmt --tests --package=imxrt-hal --package=imxrt-log # Ensures that documentation builds, and that links are valid docs: diff --git a/CHANGELOG.md b/CHANGELOG.md index b013fc1d..6d3f2d97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,9 @@ are still exposed when building with a chip feature. Introduce an `imxrt1180` feature to support the RT1180 series. +Add a `defmt` feature targeting version 0.3. When enabled, select imxrt-hal +types can be formatted with `defmt`. + ## [0.5.9] 2024-11-24 Correct LPSPI receive operations. Previously, `u8` and `u16` elements received