48 releases
Uses new Rust 2024
| 0.0.50-beta.60 | Dec 3, 2025 |
|---|---|
| 0.0.50-beta.59 | Dec 2, 2025 |
| 0.0.50-beta.56 | Nov 28, 2025 |
| 0.0.50-beta.50 | Oct 22, 2025 |
| 0.0.50-beta.13 | Aug 28, 2025 |
#1202 in Parser implementations
Used in feagi_connector_core
190KB
2.5K
SLoC
FEAGI Data Serialization
This crate provides traits and utilities for serializing and deserializing various data structures
to and from byte vectors in the FEAGI system. It offers a unified serialization framework through
the FeagiSerializable trait and efficient byte data management via FeagiByteContainer.
Core Components
FeagiSerializable- Common trait for structures that can be serialized to/from bytesFeagiByteContainer- Container that manages and owns byte data for multiple structuresFeagiByteStructureType- Enum identifying different serializable structure types
Basic Usage
use feagi_data_serialization::{FeagiByteContainer, FeagiSerializable};
// Create an empty container
let mut container = FeagiByteContainer::new_empty();
assert!(container.is_valid());
assert_eq!(container.try_get_number_contained_structures().unwrap(), 0);
// Get information about the container
let byte_count = container.get_number_of_bytes_used();
let struct_types = container.get_contained_struct_types();
More information about the specification can be found in the documentation.
Dependencies
~3.5–5MB
~93K SLoC