diff --git a/Cargo.toml b/Cargo.toml index 433ff58..346ea63 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = [] diff --git a/examples/embedded_linux_epd1in54/Cargo.toml b/examples/embedded_linux_epd1in54/Cargo.toml index 0d8e800..052c45b 100644 --- a/examples/embedded_linux_epd1in54/Cargo.toml +++ b/examples/embedded_linux_epd1in54/Cargo.toml @@ -6,7 +6,8 @@ authors = ["Christoph Groß "] [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" diff --git a/examples/embedded_linux_epd4in2/Cargo.toml b/examples/embedded_linux_epd4in2/Cargo.toml index 0d8e800..5bb31a6 100644 --- a/examples/embedded_linux_epd4in2/Cargo.toml +++ b/examples/embedded_linux_epd4in2/Cargo.toml @@ -5,8 +5,9 @@ authors = ["Christoph Groß "] [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"