[1/n] - Logger trait v2.#505
Merged
bors[bot] merged 1 commit intoknurling-rs:mainfrom Jun 17, 2021
Merged
Conversation
cae40a6 to
120abfd
Compare
- Panics on reentrant acquire. - Remove `Write` trait.
Contributor
Author
|
Code size comparison of the |
Merged
jonas-schievink
approved these changes
Jun 16, 2021
Member
|
@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 😅😆 |
Contributor
Author
|
Sounds fair! Please don't let it grow many conflicts as rebasing these is super painful. 😅 |
Member
We'll try to be quick! 😁 |
Member
|
@Dirbaio: I will leave this to you or @jonas-schievink 😄 |
Contributor
|
bors r+ |
Contributor
|
Build succeeded: |
bors Bot
added a commit
that referenced
this pull request
Jun 17, 2021
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>
7 tasks
bors Bot
added a commit
that referenced
this pull request
Oct 19, 2021
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 1 of N of #492
Writetrait.