[profile.release]
#lto = true
-#panic = 'abort'
+panic = 'abort'
[dependencies]
cgmath = "*"
glium = "0.16.0"
glutin = "0.7.4"
genmesh = "0.4.1"
-image = "0.12.0"
+image = { version = "0.13.0", features = ["png_codec"] }
obj = { version = "0.5", features = ["usegenmesh"] }
libxm = "1.0.0"
sdl2 = "*"
set -e
cargo rustc --target asmjs-unknown-emscripten -- -C link-args='-s USE_SDL=2 --preload-file flora.xm'
-cp target/asmjs-unknown-emscripten/debug/mandelwow.js .
-cp target/asmjs-unknown-emscripten/debug/deps/mandelwow-ec0c575eb8c2718a.data .
+cp -a target/asmjs-unknown-emscripten/debug/mandelwow.js .
+cp -a target/asmjs-unknown-emscripten/debug/deps/mandelwow-*.data .
emrun .
use glutin::ElementState::Pressed;
use glutin::Event::KeyboardInput;
use glutin::VirtualKeyCode;
+
+#[cfg(target_os = "emscripten")]
use std::os::raw::{c_int, c_void};
mod bounding_box;
+++ /dev/null
-set -e
-cargo rustc --target asmjs-unknown-emscripten --release -- -C link-args='-s USE_SDL=2'
-cp target/asmjs-unknown-emscripten/release/mandelwow.js .
-emrun .
--- /dev/null
+set -e
+cargo rustc --target asmjs-unknown-emscripten --release -- -C link-args='-s USE_SDL=2'
+cp -a target/asmjs-unknown-emscripten/release/mandelwow.js .
+emrun .
set -e
cargo rustc --target wasm32-unknown-emscripten --release -- -C link-args='-s USE_SDL=2 --preload-file flora.xm'
-cp target/wasm32-unknown-emscripten/release/mandelwow.js .
-cp target/wasm32-unknown-emscripten/release/deps/mandelwow-*.{wasm,data} .
+cp -a target/wasm32-unknown-emscripten/release/mandelwow.js .
+cp -a target/wasm32-unknown-emscripten/release/deps/mandelwow-*.{wasm,data} .
emrun .