Forgotten parts of the previous commit for adding a graphics feature and using it

embedded-hal-1.0
Christoph Groß 2018-09-19 11:48:05 +02:00
parent 2cc4bceac3
commit 9c08d8559e
3 changed files with 7 additions and 4 deletions

View File

@ -18,8 +18,9 @@ travis-ci = { repository = "Caemor/eink-waveshare-rs" }
[features]
default = ["epd1in54", "epd2in9", "epd4in2"]
default = ["epd1in54", "epd2in9", "epd4in2", "graphics"]
graphics = []
epd1in54 = []
epd2in9 = []
epd4in2 = []

View File

@ -6,7 +6,8 @@ authors = ["Christoph Groß <christoph-gross@mailbox.org>"]
[dependencies]
#eink_waveshare_rs = { git = "https://github.com/Caemor/eink-waveshare-rs"}
eink_waveshare_rs = { path = "../../"}
#eink_waveshare_rs = { path = "../../"}
eink_waveshare_rs = { path = "../../", default-features = false, features = ["epd1in54"]}
linux-embedded-hal = "0.2.0"

View File

@ -5,8 +5,9 @@ authors = ["Christoph Groß <christoph-gross@mailbox.org>"]
[dependencies]
#eink_waveshare_rs = { git = "https://github.com/Caemor/eink-waveshare-rs"}
eink_waveshare_rs = { path = "../../"}
## The Only difference between this one and the one without default features sizewise seems to be a different .d-file Size (dependencies-file)
#eink_waveshare_rs = { path = "../../"}
eink_waveshare_rs = { path = "../../", default-features = false, features = ["epd4in2", "graphics"]}
linux-embedded-hal = "0.2.0"