From 1b1da290d24427be5ae73ac60125f57e1129803c Mon Sep 17 00:00:00 2001 From: 2ndTaleStudio <43264484+2ndTaleStudio@users.noreply.github.com> Date: Sat, 6 Feb 2021 23:05:43 +0100 Subject: [PATCH 1/2] fix changelog.md --- .github/workflows/ci.yml | 8 ++------ CHANGELOG.md | 9 +++++++-- interrupt/Cargo.toml | 4 ++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72cf360..db8f660 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,13 +66,11 @@ jobs: - name: Publish-Dry-Run run: | - cd ./macros - cargo make publish_dry cd ../interrupt cargo make publish_dry prepare_release: - needs: [build] + needs: [build, publish_dry] if: ${{ github.ref == 'refs/heads/development' }} name: Prepare Release - Create Release PR runs-on: ubuntu-latest @@ -87,7 +85,7 @@ jobs: PULL_REQUEST_BODY: "Automatic PR to the release branch as preperation to publish the library" deploy: - needs: [build] + needs: [build, publish_dry] if: ${{ github.ref == 'refs/heads/release' }} name: Create Release runs-on: ubuntu-latest @@ -177,7 +175,5 @@ jobs: - name: Publish-Run run: | - cd ./macros - cargo make publish --env CRATES_TOKEN=${{ secrets.CRATES_TOKEN }} cd ../interrupt/ cargo make publish --env CRATES_TOKEN=${{ secrets.CRATES_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index da188e1..0c0f994 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,12 @@ # Changelog -## :banana: v0.4.0 +## :cat: v0.4.1 - ### :bulb: Features - List the features that were added with this release. + Rework the interrupt crate to support sync and async interrupt processing. Each interrupt handler implementation will recieve a `Sender` of a specific channel that may have been passed to the interrupt handling while activating a specific interrupt. The signature of a interrupt handling function will thus now look like: + + ```rust + #[IrqHandler(Foo)] + fn foo_handler(tx: Option>>) { } + ``` diff --git a/interrupt/Cargo.toml b/interrupt/Cargo.toml index 9302063..4716323 100644 --- a/interrupt/Cargo.toml +++ b/interrupt/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "ruspiro-interrupt" authors = ["Andre Borrmann "] -version = "0.4.0" # remember to update html_root_url +version = "0.4.1" # remember to update html_root_url description = """ Providing a simple and convinient way to implement interrupt handler for Raspberry Pi interrupts. """ license = "Apache-2.0 OR MIT" repository = "https://github.com/RusPiRo/ruspiro-interrupt/tree/v||VERSION||" documentation = "https://docs.rs/ruspiro-interrupt/||VERSION||" -readme = "README.md" +readme = "../README.md" keywords = ["RusPiRo", "baremetal", "raspberrypi", "interrupt"] categories = ["no-std", "embedded"] edition = "2018" From f65e8af659565c84b9e309469da83fe1d1b6d685 Mon Sep 17 00:00:00 2001 From: 2ndTaleStudio <43264484+2ndTaleStudio@users.noreply.github.com> Date: Sat, 6 Feb 2021 23:09:25 +0100 Subject: [PATCH 2/2] fix CI issue --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db8f660..10fb0be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,7 +66,7 @@ jobs: - name: Publish-Dry-Run run: | - cd ../interrupt + cd ./interrupt cargo make publish_dry prepare_release: @@ -175,5 +175,5 @@ jobs: - name: Publish-Run run: | - cd ../interrupt/ + cd ./interrupt/ cargo make publish --env CRATES_TOKEN=${{ secrets.CRATES_TOKEN }}