-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
[1/n] - Logger trait v2. #505
Conversation
cae40a6
to
120abfd
Compare
- Panics on reentrant acquire. - Remove `Write` trait.
Code size comparison of the
|
@Dirbaio: Even though the PR is approved now, we will wait with merging and do one other patch release with some minor changes. After this is released we can start merging breaking changes as much as we want 😅😆 |
Sounds fair! Please don't let it grow many conflicts as rebasing these is super painful. 😅 |
We'll try to be quick! 😁 |
@Dirbaio: I will leave this to you or @jonas-schievink 😄 |
bors r+ |
Build succeeded: |
507: [2/n] - Remove code-size-costly optimizations r=jonas-schievink a=Dirbaio Part 2 of N of #492. Depends on #505 - Remove bool compression - Remove LEB128 compression. usize/isize are now 4 bytes, format tags are now 2 bytes. Code size comparsion (only including gains from this PR, not #505): ``` before after change debug: 107232 101452 -5.3% release: 40852 37396 -8.4% release + flags: 21936 19416 -11.4% release + flags + buildstd: 20524 18004 -12.3% rustc 1.54.0-nightly (676ee1472 2021-05-06) "flags" means these in Cargo.toml: codegen-units = 1 debug = 2 debug-assertions = false incremental = false lto = 'fat' opt-level = 'z' overflow-checks = false "buildstd" means these in .cargo/config.toml: [unstable] build-std = ["core"] build-std-features = ["panic_immediate_abort"] ``` Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
547: Migration guide `v0.2.x` to `v0.3.0` r=japaric a=Urhengulas Migration guide from `defmt v0.2.x` to version `v0.3.0`. https://deploy-preview-547--admiring-dubinsky-56dff5.netlify.app/migration-02-03.html Fixes #530. ### TODO - [x] #505: Logger trait v2 - [x] #521: [3/n] Remove u24 - [x] #522: Replace `µs` hint with `us` - [x] (no adaption needed) ~~#508: [5/n] Format trait v2~~ - [x] #519: `DEFMT_LOG` - [x] #550: `defmt::flush()` - [x] knurling-rs/probe-run#198, knurling-rs/probe-run#250, Co-authored-by: Johann Hemmann <johann.hemmann@code.berlin>
Part 1 of N of #492
Write
trait.