Skip to content

v0.4.0

Choose a tag to compare

@joaquinbejar joaquinbejar released this 22 Jul 15:00
· 116 commits to main since this release
af59acc

IronFix 0.4.0

First release after the full-workspace 2026-07 audit. All 11 crates move in
lockstep to 0.4.0 (previous published: 0.3.1). This is a broad
correctness-and-conformance release across the wire, session, and engine layers,
plus the new Acceptor.

Semver note: 0.4.0 is a breaking release for the 0.x line — several public
error enums gained variants and are now #[non_exhaustive], a few fallible
signatures changed, and the deprecated wrapping sequence methods are marked.

Engine

  • Acceptor. Acceptor<A> drives the acceptor-half Logon handshake (CompID
    auth, logon timeout, HeartBtInt honouring, ResetSeqNumFlag mirroring) over
    the same shared reactor as Initiator, and EngineBuilder gained real
    terminal methods into_initiator() / into_acceptor().
  • Store-backed resend replay. With a MessageStore attached
    (Initiator::with_store), an inbound ResendRequest replays the stored
    application messages with PossDupFlag and OrigSendingTime, gap-filling
    admin messages and evicted sequence numbers; without a store it falls back to
    a single bounded gap fill.
  • Inbound conformance. Correct SequenceReset/GapFill vs Reset handling,
    bounded ResendRequest replies, FIXT.1.1 + ApplVerID for FIX 5.0, inbound
    ResetSeqNumFlag, positional CompID / SendingTime / MsgSeqNum(34)
    validation, bounded resend recovery, and checked sequence arithmetic
    throughout (a wrapped MsgSeqNum can no longer corrupt a session).
  • Fail-fast outbound. Connection::send validates at the boundary and
    refuses a message with no legal wire form with a typed error, rather than
    queuing and silently dropping it.

Wire (tagvalue) & FAST

  • Hardened the tag=value decode path against untrusted input: buffer-relative
    ranges, Length/Data field pairs framed by their declared count, malformed vs
    end-of-buffer distinguished, and a u64 checksum accumulator.
  • The encoder now only ever emits frames its own decoder accepts.
  • Framing (FixCodec): bounded header scan, unconditional trailer verification,
    and a documented garbled-message policy.
  • FAST primitives corrected: stop-bit sign carry, bounded presence maps, and the
    nullable unsigned and signed codecs now cover their full integer domains
    (u64::MAX / i64::MAX round-trip through a widened path).

Core, dictionary, codegen

  • FieldTag::is_user_defined now models both FIX bilateral user-defined ranges
    (5000–9999 and 20000–39999), and MsgType is allocation-free for unrecognised
    codes.
  • The dictionary is the authority for field types, required tags, and structure,
    with a component-recursion depth guard.
  • #[derive(FixMessage)] / #[derive(FixField)] are implemented (no longer
    todo!()), and ironfix-codegen generates Rust from a loaded Dictionary.

Infrastructure

  • A criterion bench harness (benches/ in tagvalue, fast, transport; make bench) — no baseline figures are published, so latency/throughput remain
    design targets.
  • CI gates tightened; the doc/ pages and README describe what is actually
    implemented and tested.

Full history is in the merged PRs #23–#47 (audit remediation) and #53–#54
(follow-ups). See doc/architecture.md and doc/fix_operations.md for the
design and the FIX operations spec.