Crate serde_v8

source ·

Modules

Structs

serde_v8::Value allows passing through v8::Values untouched when de/serializing & allows mixing rust & v8 values in structs, tuples…

Enums

SerializablePkg exists to provide a fast path for op returns, allowing them to avoid boxing primtives (ints/floats/bool/unit/…)

Traits

Serializable exists to allow boxing values as “objects” to be serialized later, this is particularly useful for async op-responses. This trait is a more efficient replacement for erased-serde that makes less allocations, since it’s specific to serde_v8 (and thus doesn’t have to have generic outputs, etc…)

Functions

Type Definitions