Skip to content

Comments

Add defmt support#216

Open
wojciech-graj wants to merge 1 commit intoLokathor:mainfrom
wojciech-graj:defmt
Open

Add defmt support#216
wojciech-graj wants to merge 1 commit intoLokathor:mainfrom
wojciech-graj:defmt

Conversation

@wojciech-graj
Copy link

@wojciech-graj wojciech-graj commented Feb 18, 2026

All of the formatting mirrors the Debug impls, since they are logically the same.

LTO has to be enabled because the windows linker tries to resolve symbols before performing dead code elimination, and defmt requires additional crates to actually "work" in a binary.

The MSRV also has to be bumped to 1.60, because cargo checks the Cargo.toml files of all dependencies, even if they're optional and disabled, and the syntax was expanded with version 1.60. These new syntax features are used by proc-macro-error2, which is a dependency of defmt.

@wojciech-graj wojciech-graj force-pushed the defmt branch 3 times, most recently from 12c05a3 to cf66d10 Compare February 18, 2026 20:25
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.

1 participant