Skip to content

Commit

Permalink
Bump demft-macros to 0.4.0 and pin it in new defmt-0.3.10.
Browse files Browse the repository at this point in the history
Old defmt crates only required 'defmt-macros 0.3.2 or better' and might
be matched up with a version of defmt-macros that uses newer APIs than
the selected version of defmt provides. Really, each version of defmt
only supports precisely one version of defmt-macros, and now Cargo.toml
enforces that.
  • Loading branch information
jonathanpallant committed Nov 29, 2024
1 parent af73ad0 commit 34d8f15
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
15 changes: 12 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ We have several packages which live in this repository. Changes are tracked sepa

> A highly efficient logging framework that targets resource-constrained devices, like microcontrollers
[defmt-next]: https://github.com/knurling-rs/defmt/compare/defmt-v0.3.9...main
[defmt-next]: https://github.com/knurling-rs/defmt/compare/defmt-v0.3.10...main
[defmt-v0.3.10]: https://github.com/knurling-rs/defmt/releases/tag/defmt-v0.3.10
[defmt-v0.3.9]: https://github.com/knurling-rs/defmt/releases/tag/defmt-v0.3.9
[defmt-v0.3.8]: https://github.com/knurling-rs/defmt/releases/tag/defmt-v0.3.8
[defmt-v0.3.7]: https://github.com/knurling-rs/defmt/releases/tag/defmt-v0.3.7
Expand All @@ -48,7 +49,10 @@ We have several packages which live in this repository. Changes are tracked sepa

### [defmt-next]

### [defmt-v0.3.10] (2024-11-29)

* [#902] Minor change to Format impl for `core::panic::PanicInfo`, eliding a lifetime specifier to satisfy Clippy 1.83.
* [#xxx] Pin the defmt-macro crate to avoid incompatible versions being used together

### [defmt-v0.3.9] (2024-11-27)

Expand Down Expand Up @@ -78,7 +82,7 @@ We have several packages which live in this repository. Changes are tracked sepa
* [#839] `CI`: Fix tests
* [#838] `defmt`: Switch to Cargo instruction compatible with older versions of Cargo

### [defmt-v0.3.7] (2024-05-13)
### [defmt-v0.3.7] (2024-05-13 (yanked))

* [#831] `CI`: Fix CI
* [#830] `book`: Add section about feature-gated derive Format
Expand Down Expand Up @@ -374,7 +378,8 @@ Initial release

> Macros for [defmt](#defmt)
[defmt-macros-next]: https://github.com/knurling-rs/defmt/compare/defmt-macros-v0.3.10...main
[defmt-macros-next]: https://github.com/knurling-rs/defmt/compare/defmt-macros-v0.4.0...main
[defmt-macros-v0.4.0]: https://github.com/knurling-rs/defmt/releases/tag/defmt-macros-v0.4.0
[defmt-macros-v0.3.10]: https://github.com/knurling-rs/defmt/releases/tag/defmt-macros-v0.3.10
[defmt-macros-v0.3.9]: https://github.com/knurling-rs/defmt/releases/tag/defmt-macros-v0.3.9
[defmt-macros-v0.3.8]: https://github.com/knurling-rs/defmt/releases/tag/defmt-macros-v0.3.8
Expand All @@ -395,6 +400,10 @@ Initial release

### [defmt-macros-next]

### [defmt-macros-v0.4.0] (2024-11-29)

* [#xxx] Just a major version bump to stop it being used by older defmt versions.

### [defmt-macros-v0.3.10] (2024-11-27)

### [defmt-macros-v0.3.9] (2024-05-14)
Expand Down
4 changes: 3 additions & 1 deletion defmt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ encoding-rzcobs = []
unstable-test = [ "defmt-macros/unstable-test" ]

[dependencies]
defmt-macros = { path = "../macros", version = "0.3.10" }
# There is exactly one version of defmt-macros supported in this version of
# defmt. Although, multiple versions of defmt might use the *same* defmt-macros.
defmt-macros = { path = "../macros", version = "=0.4.0" }
bitflags = "1"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"
name = "defmt-macros"
readme = "README.md"
repository = "https://github.com/knurling-rs/defmt"
version = "0.3.10"
version = "0.4.0"

[lib]
proc-macro = true
Expand Down

0 comments on commit 34d8f15

Please sign in to comment.