Closed seisyuu-hantatsushi closed 4 months ago
/ci diff pr
Related to #652.
Please, don't use type aliases for identical types. This makes compilation slower and grows docs. You can just reexport it with:
pub use oldpath as newname;
Sorry, I could not find out #652. I understand the use of re-export instead of type alias.
Do you plan to implement to add re-export functionality to svd2rust
like proposal in #652?
Might I implement the ability to add a re-export name from a derived enumeratedValue
element?
/ci diff pr
Please, no any merge master
in PR. Use rebase
instead
The changes have been committed to the rebased repository. Sorry for any inconvenience caused.
As the master branch is much further along and away from this change, and as this request seems to have been taken into account, I would like to close this pull request for now. Could I close it myself? @burrbull
Check https://github.com/rust-embedded/svd2rust/pull/816 branch first. Possibly it partially closes your needs.
Check #816 branch first. Possibly it partially closes your needs.
Thank you. I will check this branch.
/ci diff pr
If you want to use field names for enums.
Just use --field_names_for_enums
option.
My issue is resolved by --field_names_for_enums
option.
Thank you.
svd file
generated rust code from the above svd file.
svd2rust
does not generate type aliase of SAI23SEL and SPI123SEL. I would like to append type aliase of SAI23SEL and SPI123SEL.Because, if the enumerator names do not match the names of Field Reader and Filed Writer, you will be in trouble when you generate the code with macros. And if the enumerator names do not match the names of Field Reader and Filed Writer, the code is difficult to write and may cause bugs.