rust-embedded / book

Documentation on how to use the Rust Programming Language to develop firmware for bare metal (microcontroller) devices
https://docs.rust-embedded.org/book/
Apache License 2.0
1.11k stars 175 forks source link

Discuss the usage of the `log` crate #344

Open tgross35 opened 1 year ago

tgross35 commented 1 year ago

It would likely be good to point out in this book that log works in no_std environments, and can have handlers for RTT, semihosting, ITM, UART, etc.

Imho this is kind of important and isn't mentioned anywhere. It's much nicer for supporting crates to just use the log macro and allow the parent binary crate to determine how they should be printed.

eldruin commented 1 year ago

Sounds like a good idea. Would you make a proposal PR?

tgross35 commented 1 year ago

Sure, I'll try to do that sometime in the near future.