serde_amp 0.2.0

Serialization/deserialization tooling for Asynchronous Messaging Protocol
Documentation
  • Coverage
  • 0%
    0 out of 8 items documented0 out of 0 items with examples
  • Size
  • Source code size: 46.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.28 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • rockstar/serde_amp
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • rockstar

serde_amp

build-and-check crates.io

A serialization/deserialization library for Asynchronous Messaging Protocol

Usage

extern crate serde_amp;

use serde_amp;

#[derive(Deserialize, Serialize)]
struct AnStruct {
    count: usize,
    tag: String
}

fn main() {
    let an_struct = AnStruct { count: 83, tag: "an-tag" };

    let serialized = serde_amp::to_amp(&an_struct).unwrap();
    let deserialized = serde_amp::from_bytes(&serialized[..]).unwrap();
}

Note: While to_amp can serialize standard types like usize, AMP itself is a key/value protocol, and should be used with key/value types.

License

Like Serde, serde_amp is licensed under either of

at your option.`