Skip to content

wire format: omit the inner type tag empty slices and arrays #929

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jordens
Copy link

@jordens jordens commented Jan 31, 2025

  • Wire format bump

Rely on fmt_array for the bulk formatting.
This gives the compiler a bit more to play with for inlining and/or
code size reduction.
@jonathanpallant
Copy link
Contributor

This looks OK but it needs a wire-format bump so we need to wait until after 1.0 is released, when we have a bunch of stuff to wrap up into Wire Format Version 5.

@jonathanpallant jonathanpallant added this to the Wire Format Version 5 milestone Mar 5, 2025
@jonathanpallant
Copy link
Contributor

Still want to get this in, but the process will probably need to be:

  • Merge to main
  • Bump the Wire Format
  • Do a defmt-parser / defmt-decoder release that knows about the new format
  • Send a PR to probe-rs
  • Get the PR merged
  • Wait for the new probe-rs release
  • Then release a defmt-1.1.0 with the new wire format enabled by default

It's that or we find a way to use version 4 by default and let people opt-in to version 5. We should probably have a road-map so they know when defmt releases are coming and which probe-rs versions they are going to need to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants