rust-embedded-community / ssd1306

SSD1306 OLED driver
Apache License 2.0
300 stars 68 forks source link

Exclude various files from the cargo package #144

Closed mexus closed 3 years ago

mexus commented 3 years ago

Remove memory.x, build.rs and various binary files from the published crate. A side effect is that size of the bundle is decreased down to 35 KB from 2.4 MB.

Closes #143

mexus commented 3 years ago

I'd be careful with some of the image formats since those could potentially directly included but in general that seems like a good idea.

The only includes I've managed to identify belong to either examples or build.rs:

$ rg include src/
src/mode/terminal.rs
43:/// to include number of characters that can fit on the display.

src/displaysize.rs
13:/// This includes resolution, offset and framebuffer size.

.. and since there is no way to run examples on a published crate (or at least I don't know about one) I think we are on the safe side :)

jamwaffles commented 3 years ago

This is released in 0.5.1. Please upgrade and let us know if there are any problems!

mexus commented 3 years ago

Yup, it works as expected, thanks a lot!!