Skip to content

Commit

Permalink
Fix WASM.
Browse files Browse the repository at this point in the history
  • Loading branch information
twitchax committed Dec 21, 2023
1 parent 8121669 commit 8f5242e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"rust-analyzer.cargo.features": [
"ml",
"ml_gpu",
"plot"
//"ml",
//"ml_gpu",
//"plot",
"ml_infer",
"wasm"
]
}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ml_train = ["ml_base", "rand", "rayon", "burn-autodiff", "burn/train", "burn/std
ml_infer = ["ml_base", "burn", "burn-ndarray"]
ml_gpu = ["ml_train", "burn-tch", "burn-wgpu"]

wasm = ["rodio/wasm-bindgen", "wasm-bindgen", "wasm-bindgen-futures", "js-sys", "console_error_panic_hook", "wee_alloc", "gloo-timers"]
wasm = ["rodio/wasm-bindgen", "wasm-bindgen", "wasm-bindgen-futures", "js-sys", "console_error_panic_hook", "wee_alloc", "gloo-timers", "burn/wasm-sync"]

plot = ["plotters"]

Expand Down
2 changes: 0 additions & 2 deletions src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
//!
//! This module contains the WASM wrappers / bindings for the rest of the library.

use std::panic;

use js_sys::{Array, Object, Reflect};
use wasm_bindgen::{convert::RefFromWasmAbi, prelude::*};

Expand Down

0 comments on commit 8f5242e

Please sign in to comment.