jadpole / jadpole.github.io

https://jadpole.github.io
64 stars 21 forks source link

sdl2_image 1.0.0 unavailable? #30

Open drasch opened 8 years ago

drasch commented 8 years ago

I'm getting this error trying to install the 1.0.0 version of sdl2_image you've referenced.

no matching package named `sdl2_image` found (required by `arcade-rs`)
location searched: registry https://github.com/rust-lang/crates.io-index
version required: ^1.0.0
versions found: 0.16.0, 0.7.0, 0.6.0, ...
malleusinferni commented 8 years ago

That version was unpublished as the result of some discussion in an sdl2_image issue. Check the version list here and pick a version that isn't yanked. Then change your sdl2 dependency to the same version to ensure that they're compatible.

akien-mga commented 8 years ago

It would be nice to have the tutorials updated accordingly, as for Rust beginners it's not necessarily trivial to find the proper version. The tutorials currently use sdl2 0.13.0, for which there is no corresponding sdl2_image. The first version with the synchronized versionning scheme is 0.16.0, for which sdl2 has API changes that require changes made in the tutorials (e.g. in sdl2::rect::Rect::new which no longer returns Result).

akien-mga commented 8 years ago

I started a WIP port to sdl2 0.24.0 + corresponding libraries in #34. Feedback welcome.