-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
defmt-rtt: Update to critical-section 1.0 #689
Conversation
Thank you for the PR. Is there the possibility to make |
Has to be done by the end user. They might be using a multicore chip, in which case using Or they might not be using cortex-m at all :) If defmt-rtt force-enables |
901: Update to critical-section 1.0, atomic-polyfill 1.0 r=Dirbaio a=Dirbaio TODO - [x] Wait for cortex-m 0.7.6 release rust-embedded/cortex-m#449 - [x] ~~Wait for defmt-rtt 0.4 release knurling-rs/defmt#689 we're still going to use defmt 0.3 for now, which will use the `critical-section` 0.2 default impl, which works. - [x] Wait for critical-secton `std` impl rust-embedded/critical-section#22 Co-authored-by: Dario Nieuwenhuis <[email protected]>
There is a small concern of getting the Additionally, can you please add a section explaining the need to opt-in to a implementation to the docs.rs docs (the doc-comment in the beginning of lib.rs). |
This is unavoidable if you want to keep compatibility in the main
I hope it doesn't mean
Done! |
Thanks 😄
No no. We want to avoid that as well. We were just thinking how to make it easier for the users. We decided that it is good enough if we document which |
bors r+ |
Build succeeded: |
This is a breaking change, because 1.0 no longer supplies any critical section implementation by default. The user has to opt-in to one instead (for example, by enabling the
critical-section-single-core
feature incortex-m
: rust-embedded/cortex-m#447).Thankfully it needs bumping only
defmt-rtt
, and notdefmt
. So it won't cause the painful ecosystem split like thedefmt 0.2 -> 0.3
update.TODO before merging:
critical-section 1.0
release v1.0.0 release rust-embedded/critical-section#19