ah- / anne-key

Firmware for Anne Pro Keyboard written in Rust
Apache License 2.0
567 stars 32 forks source link

Run cargo bloat without LTO #33

Closed ah- closed 6 years ago

ah- commented 6 years ago

Because of all the LTO all the code ends up in SYS_TICK and anne_key, which is great for getting the smallest binary but doesn't really tell you much if you're trying to keep it slim.

I tried running cargo bloat with --debug, but then the binary is just too big, so we'd need to either hack the linker file to fake more memory than the stm32l1 actually has, or somehow still build in release mode but disable LTO.

ah- commented 6 years ago

All set up now, and cargo bloat is being run on travis as well: https://travis-ci.org/ah-/anne-key/builds/351678184