Rust bindings for the nachricht data interchange format

This is a pure Rust implementation of the binary nachricht data interchange format.

Minimum supported Rust version

Since this crates makes use of the fallible collection API to pre-allocate Bags when deserializing values, the minimum required Rust version is 1.57.0.

Usage

Add this to your Cargo.toml:

toml [dependencies] nachricht = "0.2.1"

Then you can construct, encode and decode nachricht messages:

```rust use std::borrow::Cow; use nachricht::*;

fn main() -> Result<(), Box> { let mut buf = Vec::new(); let nachricht = Field { name: Some(Cow::Borrowed("key")), value: Value::Bool(true) }; Encoder::encode(&nachricht, &mut buf)?; let decoded = Decoder::decode(&buf)?.0; assert_eq!(nachricht, decoded); Ok(()) } ```