knurling-rs / defmt

Efficient, deferred formatting for logging on embedded systems
https://defmt.ferrous-systems.com/
Apache License 2.0
750 stars 69 forks source link

Support pre 1.77 #840

Closed Urhengulas closed 1 month ago

Urhengulas commented 1 month ago

This PR makes defmt compatible with versions of rustc smaller than 1.77. It achieves this by allowing to exclude defmt::Format implementations for types which got stabilized under the ip_in_core feature. Note that those types are included by default, but can be excluded by disabling the default cargo features.

Fixes #833