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.08k stars 173 forks source link

Mention generics in "optimizing dependencies" #366

Closed Eekle closed 7 months ago

Eekle commented 7 months ago

I had some friction working with this part of the documentation - I was optimising my dependencies but still getting horrific flash usage.

It turns out to be because the profile override has subtle interactions with generic code.

This PR adds a mention of that footgun.

adamgreig commented 7 months ago

thanks!