Skip to content

Commit 96b60da

Browse files
committed
Update to svd2rust 0.33.1
This improves the generated API in various minor ways. We cannot guarantee full backwards compatibility for downstream users but the changes should not be too disrupting. Most importantly, upstream svd2rust switched to a different case style for identifiers in 0.32.0. For now, this is disabled using `--ident-formats legacy` but we should consider following their suggestion at some point in the future.
1 parent fa5aef2 commit 96b60da

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: actions-rs/[email protected]
4141
with:
4242
crate: svd2rust
43-
version: 0.28.0
43+
version: 0.33.1
4444
- name: Install cargo-form
4545
if: steps.cache-cargo.outputs.cache-hit != 'true'
4646
uses: actions-rs/[email protected]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ svd/%.svd.patched: svd/%.svd .deps/%.d
3535
src/devices/%/mod.full.rs: svd/%.svd.patched
3636
@mkdir -p $(@D)
3737
@echo -e "\tSVD2RUST\t$*"
38-
@cd $(@D); svd2rust --generic_mod --make_mod --target none -i $(realpath $<)
38+
@cd $(@D); svd2rust --ident-formats-theme legacy --generic_mod --make_mod --target none -i $(realpath $<)
3939
@mv $(@D)/mod.rs $@
4040
@mv $(@D)/generic.rs $(@D)/../../generic.rs
4141

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The version on `crates.io` is pre-built. The following is only necessary when t
3838
You need to have [atdf2svd][] (= 0.4.0), [svd2rust][] (= 0.28), [form][] (>= 0.8), [rustfmt][](for the *nightly* toolchain) and [svdtools][] (>= 0.1.9) installed:
3939
```bash
4040
cargo install atdf2svd --version 0.4.0
41-
cargo install svd2rust --version 0.28.0
41+
cargo install svd2rust --version 0.33.1
4242
cargo install form
4343
rustup component add --toolchain nightly rustfmt
4444
pip3 install --user svdtools

0 commit comments

Comments
 (0)