#v8 #serialization #deserialize #value #wasm #format #value-serializer

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

#1915 in Parser implementations

Download history 1248/week @ 2024-07-21 1321/week @ 2024-07-28 1213/week @ 2024-08-04 1004/week @ 2024-08-11 1403/week @ 2024-08-18 1410/week @ 2024-08-25 1476/week @ 2024-09-01 1759/week @ 2024-09-08 1132/week @ 2024-09-15 1539/week @ 2024-09-22 1724/week @ 2024-09-29 2414/week @ 2024-10-06 2061/week @ 2024-10-13 1921/week @ 2024-10-20 2053/week @ 2024-10-27 1566/week @ 2024-11-03

7,921 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
~168K SLoC