sajattack / st7735-lcd-rs

Rust library for displays using the ST7735 driver
https://docs.rs/st7735-lcd
MIT License
37 stars 28 forks source link

Code size increase after update from 0.7 to 0.8 #20

Open birkenfeld opened 3 years ago

birkenfeld commented 3 years ago

After upgrading, I observed a rather large increase in code size. I reduced my firmware up to a small example in https://github.com/birkenfeld/lcd-demo that does nothing but initialize the screen, and it still shows a significant difference:

0.7.2:
-rwxr-xr-x 1 gbr gbr 3412 Oct  6 08:40 firmware
0.8.1:
-rwxr-xr-x 1 gbr gbr 5224 Oct  6 08:40 firmware

Using Rust 1.55.0, the build target is thumbv7m-none-eabi, and the st7735-lcd dependency has default-features = false.

sajattack commented 1 year ago

I suspect this is related to the embedded-graphics dependency.