readd tracebacks and move vortex init to Field

This commit is contained in:
Magnus Ulimoen
2020-02-22 18:57:22 +01:00
parent fe08d398b0
commit 50d58dc7e8
4 changed files with 67 additions and 47 deletions

View File

@@ -9,8 +9,8 @@ crate-type = ["cdylib"]
path = "lib.rs"
[dependencies]
wasm-bindgen = "0.2.54"
console_error_panic_hook = { version = "0.1.6" }
wee_alloc = { version = "0.4.5" }
wasm-bindgen = "0.2.58"
console_error_panic_hook = "0.1.6"
wee_alloc = "0.4.5"
sbp = { path = "../sbp" }
ndarray = "0.13.0"

View File

@@ -8,7 +8,6 @@ static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
#[wasm_bindgen]
pub fn set_panic_hook() {
#[cfg(feature = "console_error_panic_hook")]
console_error_panic_hook::set_once();
}

View File

@@ -24,7 +24,7 @@ if __name__ == "__main__":
publish.mkdir(exist_ok=True)
target_triple = "wasm32-unknown-unknown"
command = ["env", "RUSTFLAGS=-Clto=thin", "cargo", "build", "--target", target_triple]
command = ["cargo", "build", "--target", target_triple]
if args.release:
command.append("--release")