Crate rustygpb

Crate rustygpb 

Source
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§

DecodeConfig
Configuration for GPB decoding operations.
EncodeConfig
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§

DecodeError
Errors during Protocol Buffers decoding.
EncodeError
Errors during Protocol Buffers encoding.
FieldValue
FIX field value types.
GpbError
Main error type for GPB operations.
MessageType
FIX message types commonly used in trading systems.

Traits§

Message
A Protocol Buffers message.

Derive Macros§

Message