#format #data-format #twine-data

twine-data

Codec for the twine-data binary serialization format

1 unstable release

0.1.0 Jan 20, 2025

#2044 in Encoding

MIT license

150KB
1K SLoC

Twine encoding and decoding


Twine-data

build

This crate provides means to encode and decode data in the twine-data format.

Twine is a relatively simple binary format that is designed to represent complex values that form DAGs. It superficially resembles CBOR in its data format, but introduces a notion of sharing on top of it to enable efficient representation of DAGs (including the serialization of complex in-memory data structures).

A more complete description of twine can be found at https://twine-data.dev .

Feature flags

  • bumpalo (default: false): introduces a dependency on bumpalo, which is used by the value module to deserialize an entire Twine blob into a Rust AST.

Dependencies