diff --git a/Cargo.toml b/Cargo.toml index 0558594..6144023 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,7 +61,7 @@ coreaudio-rs = { version = "0.11", default-features = false, features = ["audio_ coreaudio-rs = { version = "0.11", default-features = false, features = ["audio_unit", "core_audio", "audio_toolbox"] } [target.'cfg(target_os = "emscripten")'.dependencies] -wasm-bindgen = { version = "0.2.58" } +wasm-bindgen = { version = "0.2.89" } wasm-bindgen-futures = "0.4.33" js-sys = { version = "0.3.35" } web-sys = { version = "0.3.35", features = [ "AudioContext", "AudioContextOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioNode", "AudioDestinationNode", "Window", "AudioContextState"] } diff --git a/src/lib.rs b/src/lib.rs index a85b8c9..fe14f84 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -243,7 +243,7 @@ impl wasm_bindgen::describe::WasmDescribe for BufferSize { #[cfg(target_os = "emscripten")] impl wasm_bindgen::convert::IntoWasmAbi for BufferSize { - type Abi = wasm_bindgen::convert::WasmOption; + type Abi = Option; fn into_abi(self) -> Self::Abi { match self { Self::Default => None,