[dependencies]
cgmath = "*"
#gleam = "*"
-glium = "0.26.0"
-glutin = "0.23.0"
+glium = "0.27"
+glutin = "0.24"
image = { version = "*", features = ["png_codec"], optional = true }
+instant = "*"
libxm = "1.0.0"
rust-rocket = { path = "rust-rocket", optional = true }
rand = "*"
sdl2 = "*"
+winit = { version = "*", features = ["stdweb"] }
[features]
default = ["image", "logging"]
use mandelwow_lib::*;
use std::f32::consts::PI;
use std::rc::Rc;
-use std::time::{Duration, Instant};
+use instant::{Duration, Instant};
#[cfg(target_os = "emscripten")]
use std::os::raw::{c_int, c_void};
export CFLAGS="-O2"
export CXXFLAGS="$CFLAGS"
cargo rustc --target wasm32-unknown-emscripten --release --bin mandelwow -- \
- -C link-args='--emrun -s USE_SDL=2 -s ERROR_ON_MISSING_LIBRARIES=0 -s ASSERTIONS=2 --preload-file flora.xm'
+ -C link-args='--emrun -s ASSERTIONS=2 --preload-file flora.xm'
cp -a target/wasm32-unknown-emscripten/release/mandelwow.{js,wasm} .
cp -a target/wasm32-unknown-emscripten/release/deps/mandelwow.data .
emrun .