-
Notifications
You must be signed in to change notification settings - Fork 156
implement both owning and const generic field array writers #503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @adamgreig (rust-highfive has picked a reviewer for you, use r? to override) |
.github/workflows/ci.yml
Outdated
@@ -25,7 +25,7 @@ jobs: | |||
|
|||
include: | |||
# Test MSRV | |||
- rust: 1.40.0 | |||
- rust: 1.51.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me requiring 1.51 at this point in time is not ideal. Other opinions, @adamgreig maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this to generate crates or to use the generated crates? 1.51 is way too new for building PACs, but I wouldn't mind requiring it to generate them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generated crates. It's providing a const generic writer. I would not terribly object if this was hidden behind a feature gate but I fully agree that enabled for all is a non-starter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
behind a feature gate
It's idea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now this PR doesn't change anything if you don't use const-generic
feature.
rebased |
@adamgreig Any objections to the approach? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should still test this in CI with 1.51.
b0bfba2
to
024196f
Compare
@therealprof |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
bors r+ |
Merge conflict. |
rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors merge
54: field array collect r=adamgreig a=burrbull Need to test Preferably using rust-embedded/svd2rust#503 Co-authored-by: Andrey Zgarbul <zgarbul.andrey@gmail.com>
No description provided.