#v8 #serialization #deserialize #value #format #object #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

#994 in Parser implementations

Download history 28/week @ 2024-02-25 7/week @ 2024-03-10 1/week @ 2024-03-17 32/week @ 2024-03-31 14/week @ 2024-04-14 56/week @ 2024-04-21

102 downloads per month
Used in 2 crates

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

~6MB
~170K SLoC