0.63.0 has dependancy error related to lazy_static
johnthagen opened this issue · 4 comments
johnthagen commented
When I update my Cargo.toml
from
[dependencies]
piston_window = "0.62.0"
piston2d-opengl_graphics = "0.39.0"
piston-music = "0.18.0"
To:
[dependencies]
piston_window = "0.63.0"
piston2d-opengl_graphics = "0.39.0"
piston-music = "0.18.0"
I receive this error:
Updating registry `https://github.com/rust-lang/crates.io-index`
error: failed to select a version for `lazy_static` (required by `winit`):
all possible versions conflict with previously selected versions of `lazy_static`
version 0.2.1 in use by lazy_static v0.2.1
possible versions to select: 0.2.2
Trying to build on stable 1.14.0 MSVC x64. Not sure if this problem is upstream of piston_window
or not.
bvssvni commented
Try cargo update
.
johnthagen commented
That worked (well actually I'm at a compiler error now).
error[E0432]: unresolved import `piston_window::Event`
--> src\game.rs:4:36
|
4 | use piston_window::{Button, clear, Event, Input, Key, PistonWindow, polygon, Transformed, types};
| ^^^^^ no `Event` in `piston_window`. Did you mean to use `Events`?
But I assume that is an API update I need to track down. Is there a change log for Piston/piston_window anywhere?
bvssvni commented
All enum variants from Event
is merged into Input
. You can just delete the import.
We don't have a change log yet. Issue here PistonDevelopers/piston#1150
johnthagen commented
All enum variants from
Event
is merged intoInput
.
Perfect, thanks!