Expand description
§RustyGPB - Protocol Buffers for FIX Messages
High-performance Protocol Buffers encoding/decoding for FIX messages optimized for ultra-low latency trading systems.
§Features
- Zero-copy deserialization where possible
- SIMD-aligned buffers for optimal performance
- Support for standard FIX message types
- Streaming message processing
- Comprehensive error handling
§Example
use rustygpb::{GpbEncoder, GpbDecoder, FixMessage};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut encoder = GpbEncoder::new();
let message = FixMessage::new_order_single(
"BTCUSD".to_string(),
50000.0,
1.0,
"1".to_string()
);
let bytes = encoder.encode(&message)?;
let decoder = GpbDecoder::new();
let decoded = decoder.decode(bytes)?;
Ok(())
}Modules§
- prelude
- Prelude module for common imports
Structs§
- Decode
Config - Configuration for GPB decoding operations.
- Encode
Config - Configuration for GPB encoding operations.
- FixMessage
- FIX message representation optimized for Protocol Buffers encoding.
- GpbBuffer
- High-performance buffer for GPB operations with SIMD alignment.
- GpbDecoder
- High-performance Protocol Buffers decoder for FIX messages.
- GpbEncoder
- High-performance Protocol Buffers encoder for FIX messages.
- GpbReader
- High-performance reader for Protocol Buffers messages.
- GpbWriter
- High-performance writer for Protocol Buffers messages.
- Timestamp
- A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one.
Enums§
- Decode
Error - Errors during Protocol Buffers decoding.
- Encode
Error - Errors during Protocol Buffers encoding.
- Field
Value - FIX field value types.
- GpbError
- Main error type for GPB operations.
- Message
Type - FIX message types commonly used in trading systems.
Traits§
- Message
- A Protocol Buffers message.