From feb03d1850b9e89dbe53ac9cda30a9f37b1ce7ed Mon Sep 17 00:00:00 2001 From: chrysn Date: Wed, 20 Mar 2024 16:03:20 +1000 Subject: [PATCH 1/2] Bump version Changes: * Optimize panic handlers panic_handler_crash now sidesteps additional error reporting that may have been possible depending on the interrupt state. * Add support for embedded-nal-async 0.7 * Gcoap: Fix building on 64bit platforms * Inspect BINDGEN_OUTPUT_FILE instead of linked riot-sys environment variables at build time * Don't use custom rustfmt configuration * CI fixes --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 85e2e8c..068e9b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "riot-wrappers" -version = "0.8.2" +version = "0.8.3" authors = ["Christian Amsüss "] edition = "2021" rust-version = "1.75" From ab62128efbe9dcebb85ed9ef56528a1ecb5db23e Mon Sep 17 00:00:00 2001 From: chrysn Date: Wed, 20 Mar 2024 19:04:12 +1000 Subject: [PATCH 2/2] CI: cargo-update from the right directory Without this change, the patch.crates-io does not take, and we are building with an old version; this primarily causes issues during version updates when the version found through patch.crates-io at runtime is recognized as the new one, but the lock file says to use the released version, and in the end cargo falls back to not using the local version. --- .github/workflows/test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ed01f7c..e473e71 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,7 +43,10 @@ jobs: # and all relevant crates once, and after that, just make some notes in Cargo.lock run: | set -x - for MANIF in $(find RIOT -name Cargo.toml) + # It is important to cd in early, for otherwise the patch.crates-io + # will not catch on during the update + cd RIOT + for MANIF in $(find -name Cargo.toml) do echo "::group::Updating ${MANIF}" cargo update -p riot-sys -p riot-wrappers --aggressive --manifest-path $MANIF @@ -105,7 +108,10 @@ jobs: # and all relevant crates once, and after that, just make some notes in Cargo.lock run: | set -x - for MANIF in $(find RIOT -name Cargo.toml) + # It is important to cd in early, for otherwise the patch.crates-io + # will not catch on during the update + cd RIOT + for MANIF in $(find -name Cargo.toml) do echo "::group::Updating ${MANIF}" cargo update -p riot-sys -p riot-wrappers --aggressive --manifest-path $MANIF