Skip to content

Clean chip and core target dir before generating#98

Merged
diondokter merged 2 commits intoembassy-rs:mainfrom
9names:generator_cleanfirst
May 4, 2026
Merged

Clean chip and core target dir before generating#98
diondokter merged 2 commits intoembassy-rs:mainfrom
9names:generator_cleanfirst

Conversation

@9names
Copy link
Copy Markdown
Contributor

@9names 9names commented May 3, 2026

The current generator impl doesn't clean the target directory when generating.
This means that if you rename a peripheral, the old files will still remain (unless you manually delete them).
Doing this also uncovered that you couldn't actually start from scratch with a few of the PACs because it tried to call rustfmt on mod.rs when the files it referred to didn't exist yet.

This addresses the "how do I remove old files" aspects of #96

@9names 9names mentioned this pull request May 3, 2026
@diondokter
Copy link
Copy Markdown
Contributor

Believe it or not, but it was worse in the past :P

But this is good to have, thanks!

@diondokter diondokter merged commit ecfc2be into embassy-rs:main May 4, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants