Added
- Added
js_sys::Float16Arraybindings,DataViewfloat16 accessors using
f32, and raw[u16]helper APIs for interoperability with binary16
representations such ashalf::f16.
#5033
Changed
-
Updated to Walrus 0.26.1 for deterministic type section ordering.
#5069 -
The
#[wasm_bindgen]macro now emits&mut (impl FnMut(...) + MaybeUnwindSafe)
/&(impl Fn(...) + MaybeUnwindSafe)for raw&mut dyn FnMut/&dyn Fn
import arguments instead of a hidden generic parameter and where-clause. The
generated signature is cleaner and theMaybeUnwindSafebound is visible
directly in the argument position. The ABI and wire format are unchanged.
When building withpanic=unwind, closures that capture non-UnwindSafe
values (e.g.&mut T,Cell<T>) must wrap them inAssertUnwindSafebefore
capture; on all other targetsMaybeUnwindSafeis a no-op blanket impl.
#5056