Closed TDHolmes closed 4 years ago
I think it might be due to the version mismatch between the SSD1306 crate (0.4.x
) and the latest embedded-graphics release (0.5.x
). Using 0.4.x
for now should fix this issue. I'll be upgrading the embedded-graphics dependency when I have a spare moment 🙂
FYI, still seeing this error even if I use your branch from #90. Not sure if you expect that or not... 😬
I checked out the branch in #90 and it compiled the examples in this crate successfully. Do you have a project you could link to so I can take a look? Are you using the same version of embedded-graphics in your Cargo.toml
as in the ssd1306
crate?
Alright, now I'm very confused... I can compile just fine with the following Cargo.toml
:
ssd1306 = { git = "https://github.com/jamwaffles/ssd1306.git", branch = "embedded-graphics-0.6" }
embedded-graphics = "0.6.0-alpha.1"
but when I check out embedded-graphics
myself and point my dependency to my local version, even if it's checked out to the identical commit as what is published for a given version, it fails with the above error.
ssd1306 = { git = "https://github.com/jamwaffles/ssd1306.git", branch = "embedded-graphics-0.6" }
embedded-graphics = { path = "../embedded-graphics/embedded-graphics" }
Any ideas why that would be the case?
I think your first example works because the versions are identical. My hunch is that your second version doesn't work because the embedded-graphics-0.6
branch uses version 0.6.0-alpha-1
and the path
property in your embedded-graphics
dependency doesn't match up with that, even if it's the same Git commit - Cargo won't be able to figure out that they're the same code.
Using your first snippet seems ok to me for now as an interim solution. I'm going to release embedded-graphics 0.6.0-alpha.2
in a mo which can get a matching alpha release of ssd1306
. I think this should mean you can have your simple Cargo dependencies back:
ssd1306 = "0.3.0-alpha.1"
embedded-graphics = "0.3.0-alpha.2"
I think you're correct. Once I used a local copy of ssd1306
that also pointed to my local copy it seems to be working again.
I've just released ssd1306
0.3.0-alpha.1
. This uses embedded-graphics
0.6.0-alpha.2
which should hopefully fix your problem, provided you use e-g 0.6.0-alpha.2
in your project's Cargo.toml
. Please let me know how you get on and I'll close this issue if your problem is resolved.
No news must mean good news ;). Closing as resolved, but please re-open if the issue persists.
I've been able to draw fonts and such with embedded-graphics v0.4.5 with this code:
but once I update to latest embedded-graphics, I get the following error:
Is this expected? I can't easily see why this is breaking in the first place. Explicitly calling
use embedded_graphics::Drawing
doesn't seem to fix it for me.