From ed9f7bd7dc5a9f388b1902076e67921f248a7361 Mon Sep 17 00:00:00 2001 From: RunDevelopment Date: Mon, 11 Nov 2024 15:25:25 +0100 Subject: [PATCH] Added note for which versions of wasm-bindgen support i128 --- guide/src/reference/types/numbers.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guide/src/reference/types/numbers.md b/guide/src/reference/types/numbers.md index 79b031b6af8..5cf376569ec 100644 --- a/guide/src/reference/types/numbers.md +++ b/guide/src/reference/types/numbers.md @@ -11,6 +11,8 @@ > **Note**: Wasm is currently a 32-bit architecture, so `isize` and `usize` are 32-bit integers and "fit" into a JavaScript `Number`. +> **Note**: `u128` and `i128` require `wasm-bindgen` version 0.2.96 or later. + ## Converting from JavaScript to Rust `wasm-bindgen` will automatically handle the conversion of JavaScript numbers to Rust numeric types. The conversion rules are as follows: