-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convert Vec<[u8]> to JsValue #1134
Comments
Currently there's not a great way to do this inline in Rust, but it's covered by #811 so I'm going to close this in favor of that. Thanks for the report though! |
@alexcrichton I have a |
@rylev I think |
I'm looking for a safe variant. I end up building a new |
I believe if you |
I am using
fetch
in combination withbincode
. Asbincode::deserialize
expects a byte array andbincode::serialize
creates a byte array. To do this I currently use the following code:Is there a better way to do this?
The text was updated successfully, but these errors were encountered: