hotfix-store
Message store traits and implementations for the HotFIX FIX engine.
Overview
This crate provides the MessageStore trait and core implementations for persisting FIX session state, including
messages and sequence numbers.
Implementations
- InMemoryMessageStore: A non-persistent store for testing
- FileStore: A file-based store for simple persistence
Additional implementations are available in separate crates:
- hotfix-store-mongodb: MongoDB-backed store
Usage
use ;
// In-memory store (for testing)
let store = default ;
// File-based store (for persistence)
let store = new ?;
Test Utilities
The test-utils feature provides a test harness for verifying custom MessageStore implementations:
use TestStoreFactory;
use conformance_tests;
;
// Generates all conformance tests for your implementation
conformance_tests!;