rustygpb 0.7.3

Protocol Buffers encoding for FIX messages in RustyFix
Documentation

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(())
}