Skip to content

Commit

Permalink
Support integer/float slices/vectors
Browse files Browse the repository at this point in the history
Closes #5
  • Loading branch information
alexcrichton committed Feb 17, 2018
1 parent 7802535 commit 3c58aa7
Show file tree
Hide file tree
Showing 6 changed files with 863 additions and 89 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ are:
* Imported types in a foreign module annotated with `#[wasm_bindgen]`
* Borrowed exported structs (`&Foo` or `&mut Bar`)
* The `JsValue` type and `&JsValue` (not mutable references)
* Vectors and slices of supported integer types

All of the above can also be returned except borrowed references. Strings are
implemented with shim functions to copy data in/out of the Rust heap. That is, a
Expand Down
Loading

0 comments on commit 3c58aa7

Please sign in to comment.