Plexor Codec: Serde Postcard
plexor-codec-serde-postcard provides a Postcard codec implementation for the Plexor distributed system architecture.
It enables Neurons to serialize and deserialize payloads using the efficient, no-std compatible postcard library, making it ideal for compact binary messaging and embedded environments.
Features
- Seamless Integration: Implements the
Codectrait forplexor-core. - High Performance: Leverages
postcardfor extremely compact and fast binary serialization. - Type Safety: Leverages Rust's strong typing via
serde::Serializeandserde::Deserialize. - Flexibility: Works with any type that implements Serde traits.
Usage
1. Add Dependencies
[]
= "0.1.0-alpha.1"
= "0.1.0-alpha.1"
= { = "1.0", = ["derive"] }
2. Define a Message
use ;
3. Use in a Neuron
use NeuronImpl;
use NamespaceImpl;
use SerdePostcardCodec;
use Arc;
// Define the Neuron using the Postcard codec
let neuron = new_arc;
License
Mozilla Public License, version 2.0.