Skip to content

Commit 8771907

Browse files
Added note for which versions of wasm-bindgen support i128 (#4262)
1 parent df9893b commit 8771907

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

guide/src/reference/types/numbers.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
> **Note**: Wasm is currently a 32-bit architecture, so `isize` and `usize` are 32-bit integers and "fit" into a JavaScript `Number`.
1313
14+
> **Note**: `u128` and `i128` require `wasm-bindgen` version 0.2.96 or later.
15+
1416
## Converting from JavaScript to Rust
1517

1618
`wasm-bindgen` will automatically handle the conversion of JavaScript numbers to Rust numeric types. The conversion rules are as follows:

0 commit comments

Comments
 (0)