Closed mcsantiago closed 4 years ago
Steps to reproduce:
cargo new rusty_piston_project
piston_window = "0.98.0"
extern crate piston_window; use piston_window::*; fn main() { let mut window: PistonWindow = WindowSettings::new("Hello Piston!", [640, 480]) .exit_on_esc(true).build().unwrap(); while let Some(event) = window.next() { window.draw_2d(&event, |context, graphics, _device| { clear([1.0; 4], graphics); rectangle([1.0, 0.0, 0.0, 1.0], // red [0.0, 0.0, 100.0, 100.0], context.transform, graphics); }); } }
cargo build
This is run on MacOS Mojave v10.14.5
Nevermind! I just had to update my version of Rust to the latest: rustup update
rustup update
Steps to reproduce:
cargo new rusty_piston_project
piston_window = "0.98.0"
to the dependenciescargo build
fails to install arrayvec v0.5.1This is run on MacOS Mojave v10.14.5