Skip to content

Separate "crate version" from "wire format version" #540

Merged
bors[bot] merged 5 commits intoknurling-rs:mainfrom
Dirbaio:wire
Jul 27, 2021
Merged

Separate "crate version" from "wire format version" #540
bors[bot] merged 5 commits intoknurling-rs:mainfrom
Dirbaio:wire

Conversation

@Dirbaio
Copy link
Copy Markdown
Contributor

@Dirbaio Dirbaio commented Jul 18, 2021

Depends on #539. Fixes #287.

This decouples the "wire format version" from the crate version (Cargo package version or git commit). Wire format version can now be bumped independently. This alleviates pains listed in #539., and more importantly it will allow making breaking changes to the wire format in a semver-minor defmt crate release. See #426.

Version is 3 to be able to retroactively number 0.1.x = 1, 0.2.x = 2. A followup PR will add support to defmt-decoder to decode both version 2 and 3 concurrently.

@Dirbaio Dirbaio marked this pull request as draft July 18, 2021 05:18
@Dirbaio Dirbaio marked this pull request as ready for review July 18, 2021 05:41
@Urhengulas
Copy link
Copy Markdown
Member

Urhengulas commented Jul 20, 2021

Hi @Dirbaio, Can you please resolve the merge conflict? 😁

@Urhengulas
Copy link
Copy Markdown
Member

Urhengulas commented Jul 20, 2021

Heh, your change makes #518 pretty-much obsolete 🙈 I will revert it (#545).

Copy link
Copy Markdown
Contributor

@jonas-schievink jonas-schievink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, though some in-code docs would be good to have here, since this is quite important to get right.

Comment thread src/lib.rs
@jonas-schievink
Copy link
Copy Markdown
Contributor

bors r+

@bors
Copy link
Copy Markdown
Contributor

bors Bot commented Jul 27, 2021

Build succeeded:

@bors bors Bot merged commit c7b20d5 into knurling-rs:main Jul 27, 2021
Comment thread decoder/src/elf2table/mod.rs
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.

Separate "crate version" from "wire format version"

3 participants