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.12k stars 179 forks source link

Mention generics in "optimizing dependencies" #366

Closed Eekle closed 9 months ago

Eekle commented 10 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 10 months ago

thanks!