Skip to content

Commit

Permalink
Added note for which versions of wasm-bindgen support i128 (#4262)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored Nov 12, 2024
1 parent df9893b commit 8771907
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guide/src/reference/types/numbers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8771907

Please sign in to comment.