Skip to main content

Crate koda_rs

Crate koda_rs 

Source
Expand description

§koda-rs

Rust implementation of KODA (Compact Object Data Architecture): a compact, deterministic format for structured data, with both text and binary representations.

§Text format

Parse and stringify a key-value style text format:

name: "my-app"
version: 1
enabled: true

§Binary format

Encode and decode the same data to a binary wire format compatible with koda-go: magic KODA, version, key dictionary, then typed values (null, bool, integer, float, string, array, object).

Re-exports§

pub use decoder::decode;
pub use decoder::decode_with_options;
pub use decoder::DecodeOptions;
pub use encoder::encode;
pub use error::KodaError;
pub use error::Result;
pub use parser::parse;
pub use stream::parse_reader;
pub use value::Value;

Modules§

decoder
Binary decoding from KODA wire format (Go-compatible).
encoder
Binary encoding of Value to KODA wire format (Go-compatible).
error
Structured error types for parsing, encoding, and decoding.
lexer
Lexer for the KODA text format (key: value syntax).
parser
Parser for the KODA text format: builds a Value from tokens.
stream
Streaming parser for KODA text format.
value
Dynamic value type for the KODA data model.

Functions§

stringify
Serializes a Value to KODA text format (key: value style).