From 17ca87cabb0cca48c085d742ccf864a892299fa0 Mon Sep 17 00:00:00 2001 From: Ryan Levick Date: Wed, 28 Feb 2018 17:33:16 +0100 Subject: [PATCH] Add to README that Vec cannot be passed to functions --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b1c641f3..d46017c3 100644 --- a/README.md +++ b/README.md @@ -404,7 +404,8 @@ are: * The `JsValue` type and `&JsValue` (not mutable references) * Vectors and slices of supported integer types and of the `JsValue` type. -All of the above can also be returned except borrowed references. Strings are +All of the above can also be returned except borrowed references. Passing +`Vec` as an argument to a function is not currently supported. Strings are implemented with shim functions to copy data in/out of the Rust heap. That is, a string passed to Rust from JS is copied to the Rust heap (using a generated shim to malloc some space) and then will be freed appropriately.