#v8 #serialization #deserialize #value #wasm #format #object

v8_valueserializer

A Rust implementation of V8's ValueSerializer and ValueDeserializer

2 releases

0.1.1 Dec 14, 2023
0.1.0 Nov 6, 2023

#1783 in Parser implementations

Download history 961/week @ 2024-07-01 1375/week @ 2024-07-08 903/week @ 2024-07-15 1300/week @ 2024-07-22 1328/week @ 2024-07-29 1212/week @ 2024-08-05 978/week @ 2024-08-12 1461/week @ 2024-08-19 1372/week @ 2024-08-26 1545/week @ 2024-09-02 1703/week @ 2024-09-09 1119/week @ 2024-09-16 1557/week @ 2024-09-23 1653/week @ 2024-09-30 2510/week @ 2024-10-07 2040/week @ 2024-10-14

7,873 downloads per month
Used in 15 crates (2 directly)

MIT license

130KB
4K SLoC

v8_valueserializer

This module implements the V8 ValueSerializer and ValueDeserializer API in Rust. It can serialize and deserialize any value that can be represented in V8's format.

Additionally this library can generate an eval'able JavaScript representation of the serialized value that can be used for user display, manipulation, or debugging.

In the future this library will also provide a way to serialize and deserialize values to and from JavaScript objects or a structured intermediate in JavaScript via WebAssembly.

Development

To build:

$ cargo build

Dependencies

~5.5MB
~169K SLoC