amethyst / amethyst-starter-2d

Seed project for 2D games
Other
201 stars 42 forks source link

Doesn't compile out of the box on Windows #33

Open mkuitune opened 2 years ago

mkuitune commented 2 years ago

Platform: Windows 10 rust 1.57.0

To reproduce: Follow instructions on 2d sample page (git clone, cargo run).

Error: Fairly long list of errors, each referring to mismatch between types u32 and usize in lexical-core-0.4.6. This is the first one:

error[E0308]: mismatched types --> C:\Users\xxx.cargo\registry\src\github.com-1ecc6299db9ec823\lexical-core-0.4.6\src\atof\algorithm\bigcomp.rs:243:55 | 243 | let nlz = den.leading_zeros().wrapping_sub(wlz) & (u32::BITS - 1); | ^^^^^^^^^^^^^^^ expected usize, found u32

RichTeaMan commented 2 years ago

Running cargo update -p lexical-core seems to fix it.

zemzale commented 2 years ago

The same issue is for macOS. The update of lexical-core indeed fixed the problem.

Domiryuu commented 1 year ago

Same error on Linux same fix, realized I should just cargo update because of how long its been since I have used rust.