Skip to content

Commit 329bee6

Browse files
bors[bot]Finn HermelingUrhengulas
authored
Merge #747
747: Bump wire version r=Urhengulas a=therealfrauholle The changes introduced in #742 add the field `crate_name` to the wire format. As far as I understand this requires a bump of the defmt version. Also, is this a reason to yank version 0.3.5? This problem caused me quite some headache today and I hope this spares others from going through the same pain. Co-authored-by: Finn Hermeling <[email protected]> Co-authored-by: Urhengulas <[email protected]>
2 parents 064ba39 + 22ef5bf commit 329bee6

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
- [#747]: Bump wire version
11+
12+
[#747]: https://github.com/knurling-rs/defmt/pull/747
13+
1014
## [v0.3.3] - 2023-03-29
1115

1216
- [#745]: Release `defmt-v0.3.3`, `defmt-decoder-v0.3.5`, `defmt-macros v0.3.4`, `defmt-parser v0.3.2`, `defmt-print v0.3.5` and `panic-probe v0.3.1`

decoder/src/elf2table/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub fn parse_impl(elf: &[u8], check_version: bool) -> Result<Option<Table>, anyh
220220
fn check_version(version: &str) -> Result<(), String> {
221221
if version != DEFMT_VERSION {
222222
let msg = format!(
223-
"defmt wire format version mismatch: firmware is using {}, `probe-run` supports {}\nsuggestion: `cargo install` a different version of `probe-run` that supports defmt {}",
223+
"defmt wire format version mismatch: firmware is using {}, `probe-run` supports {}\nsuggestion: use a newer version of `defmt` or `cargo install` a different version of `probe-run` that supports defmt {}",
224224
version, DEFMT_VERSION, version
225225
);
226226

decoder/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#![cfg_attr(docsrs, doc(cfg(unstable)))]
1111
#![doc(html_logo_url = "https://knurling.ferrous-systems.com/knurling_logo_light_text.svg")]
1212

13-
pub const DEFMT_VERSION: &str = "3";
13+
pub const DEFMT_VERSION: &str = "4";
1414

1515
mod decoder;
1616
mod elf2table;

defmt/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extern crate alloc;
3030
#[used]
3131
#[cfg_attr(target_os = "macos", link_section = ".defmt,end.VERSION")]
3232
#[cfg_attr(not(target_os = "macos"), link_section = ".defmt.end")]
33-
#[export_name = "_defmt_version_ = 3"]
33+
#[export_name = "_defmt_version_ = 4"]
3434
static DEFMT_VERSION: u8 = 0;
3535

3636
#[used]

xtask/src/backcompat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ use crate::{ALL_ERRORS, ALL_SNAPSHOT_TESTS, SNAPSHOT_TESTS_DIRECTORY};
4040
const DISABLED: bool = false;
4141

4242
// use this format: PR <number> - <what feature / change broke compatibility>
43-
// PR #569 - defmt::println!
44-
const REVISION_UNDER_TEST: &str = "8a6e8eebe40f943d9b0ba8725cd6da033b9c399e";
43+
// PR #747 - Bump wire format
44+
const REVISION_UNDER_TEST: &str = "0e92d3a88aa472377b964979f522829d961d8986";
4545

4646
// the target name is in `firmware/qemu/.cargo/config.toml` but it'd be hard to extract it from that file
4747
const RUNNER_ENV_VAR: &str = "CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER";

0 commit comments

Comments
 (0)