From 2b84214626ea3d099e5833b27699c1e2cc1fc7aa Mon Sep 17 00:00:00 2001 From: Garret Kelly Date: Wed, 13 May 2020 21:19:28 -0400 Subject: [PATCH 1/2] Use bleeding-edge `svd2rust` A pair of changes (rust-embedded/svd#119, rust-embedded/svd2rust#444) recently went into the `svd2rust` and `svd-parser` crates that improves the handling of cluster names and the generation of full type paths for cluster instances. Until these changes are part of a release have `update.sh` pull a fork of `svd2rust` that uses the master version of `svd-parser`. See #195. --- update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.sh b/update.sh index a950cc3c1bd4..eeada2ddfa78 100755 --- a/update.sh +++ b/update.sh @@ -5,7 +5,7 @@ set -xe # INSTALL DEPENDENCIES -cargo install --force --version 0.17.0 svd2rust +cargo install --force --git https://github.com/gkelly/svd2rust --branch bleeding-edge svd2rust cargo install --force --version 0.7.0 form python -m pip install -r requirements.txt From b02ef8156008e6b0a88be4371a7d6b95d296dd18 Mon Sep 17 00:00:00 2001 From: Garret Kelly Date: Sat, 16 May 2020 12:38:10 -0400 Subject: [PATCH 2/2] Add explicit revision to svd2rust Ensure that changes in the upstream gkelly/svd2rust repository don't end up accidentially included during normal use by pinning to a specific revision. --- update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index eeada2ddfa78..9fc123cd7311 100755 --- a/update.sh +++ b/update.sh @@ -5,7 +5,8 @@ set -xe # INSTALL DEPENDENCIES -cargo install --force --git https://github.com/gkelly/svd2rust --branch bleeding-edge svd2rust +cargo install --force --git https://github.com/gkelly/svd2rust --branch \ + bleeding-edge --rev 2bbb60590096bcb67c91f38bedd1f63f98132abe svd2rust cargo install --force --version 0.7.0 form python -m pip install -r requirements.txt