Attribute Macrosยง
- wasm_
export - A proc macro that generates the wasm function bindings with
WasmEncodedResultreturn type from rust functions that natively return Result<T, E>, this makes it possible to avoid throwing on js when return value is Result::Err variant, instead it will returnWasmEncodedResult<T>normally on js where either of Result::Ok or Result::Err variants are included within theWasmEncodedResultproperties.