Closed anall closed 3 years ago
It seems that these 2 lines (in src/devices/attiny202/mod.full.rs) are new in 0.18:
src/devices/attiny202/mod.full.rs
use generic :: * ; # [doc = "Common register and bit access and modify traits"] pub mod generic ; # [doc (hidden)]
And this causes the FORM step to fail with (at signs removed to make make echo the commands):
make
-e SVD2RUST attiny202 echo -e "\tFORM\t\tattiny202" -e FORM attiny202 RUST_LOG=WARN form -i src/devices/attiny202/mod.full.rs -o src/devices/attiny202 >/dev/null rm src/devices/attiny202/mod.full.rs mv src/devices/attiny202/lib.rs src/devices/attiny202/mod.rs RUSTUP_TOOLCHAIN=nightly rustfmt src/devices/attiny202/mod.rs Error writing files: failed to resolve mod `generic`: /home/…/avr-device/src/devices/attiny202 does not exist make: *** [Makefile:47: src/devices/attiny202/mod.rs] Error 1
Looking at the svd2rust changelog, I think we need to use that new -m switch now.
svd2rust
-m
(In the meantime, svd2rust revision 56be78729279eeebef65110c13be8d96c0b9270f should work)
Fixed in PR #86!
It seems that these 2 lines (in
src/devices/attiny202/mod.full.rs
) are new in 0.18:And this causes the FORM step to fail with (at signs removed to make
make
echo the commands):