tarcieri / micromath

Embedded Rust arithmetic, 2D/3D vector, and statistics library
Apache License 2.0
401 stars 21 forks source link

Add defmt support #108

Closed sunsided closed 4 months ago

sunsided commented 4 months ago

This adds support for defmt via the defmt feature flag to simplify logging on embedded targets.

sunsided commented 4 months ago

@tarcieri Apologies for that. This combination is supremely annoying: While the dep: syntax itself requires Rust 1.60.0+, defmt doesn't specify an MSRV and its own dependency on syn bring the requirement up quite dramatically. The lowest Rust version where everything works is 1.62.0 (June 2022).

I updated the MSRV accordingly, but I can absolutely understand if you don't want to go this way.

tarcieri commented 4 months ago

I guess we can see if anyone complains. One neat thing about adopting namespaced features is they hide the crate from older compiler versions, which does make it a good opportunity to introduce MSRV changes.