This project follows the Keep a Changelog format and Semantic Versioning. Entries are written in English; breaking changes are explicitly marked.
ParsedEvent, EventPayload, RowChange, RowImage, ColumnValue, and Signedness now derive Clone (CellValue and JsonDiffRecord already did), so consumers can retain or aggregate streamed events without field-by-field rebuilding (additive, semver-minor; 2026-11-18 source review).--format csv now emits one record per partial_update_rows row (2026-11-20 source review): the full before image and the diff-applied after image render in the same before/after columns as ordinary row events, with an absent image as JSON null. Previously --format csv silently produced no records for partial-update events, dropping those rows from CSV output entirely. JSONL and text output are unchanged, and row events without a resolved table map still produce no records. The USAGE and DESIGN output-contract sections were updated accordingly.--stream-payload-events usage error now names the actual conflict: combining the flag with --stats reports “--stream-payload-events cannot be combined with --stats” instead of the misleading “requires --format jsonl”; the message for a non-JSONL --format is unchanged (2026-11-20 source review).parse_binlog additionally drives visit_events on every input, and jsonb_via_row additionally feeds each input as a WL#2955 diff sequence against a fixed before document, exercising parse_diffs, the JSON path parser, and the diff applier (2026-11-20 source review).log_pos warnings accumulated before a formatter write failure are no longer silently dropped: the failure is stashed and the warnings drained before the hard error propagates, matching the parse-error path (2026-11-20 source review).BinlogParser::with_max_event_size now rejects a cap below the 19-byte event header with a clear panic instead of building a parser that fails every event of any file as OversizedEvent; the CLI already enforced the bound (plus its 1 GiB limit) at argument-parse time, so only library consumers were exposed (2026-11-18 source review).--url scheme matching is now case-insensitive per RFC 3986: HTTPS:///HTTP:// URLs are accepted, with the scheme lowercased for the request (authority, path, and query untouched); previously the byte-prefix check rejected them with a contradictory “URL must use HTTP or HTTPS” error (2026-11-18 source review).Sixth batch, from the 2026-11-15 round-4 review (ROADMAP W7). Additive release — the default output contract is unchanged.
--stream-payload-events streams compressed-transaction inner events as their own top-level JSONL lines instead of buffering them into one nested record (R46b): the outer line carries payload.streamed: true with events omitted, each inner line carries parent_offset (outer file offset) and inner_index (0-based per payload). JSONL-only — combining the flag with --format text|csv or --stats is a usage error (exit 2). Filters evaluate per emitted line, so --table, --include-gtid and datetime filters now match inside payloads; position-range filters gate only the outer payload event. Default-mode output bytes are unchanged, and --max-inner-events has no effect in streaming mode (visit_events is backpressured by design).Unknown ENUM) instead of a misattributed malformed NEWDECIMAL value / trailing bytes message from misaligned offsets (R50 follow-up).*.json) and production binlogs (cwt25_*) are gitignored, closing the path where one git add -A could commit player data (R51 follow-up).cli default feature already isolates CLI dependencies, and a split would break cargo install binlog-inspect and double the publish path for zero user-visible gain.Fourth and fifth batches, from the 2026-11-06 re-review and 2026-11-07/09 source reviews (ROADMAP R39–R52). Breaking library release (R45).
BinlogParser::visit_events with payload start/end notifications, one-at-a-time inner-event delivery, shared table-map state, and explicit cancellation semantics.ParserError variants — Checksum { offset }, Truncated { offset }, OversizedEvent { offset, size, limit }, TooManyInnerEvents { offset, limit } alongside Io/EncryptedBinlog/InvalidHeader — with Display strings byte-compatible with the previous messages (R45).BinlogParser::with_inner_event_limit(NonZeroUsize) and the --max-inner-events <COUNT> CLI flag (default 250,000, 0 rejected at parse time): the collecting transaction_payload() path fails with TooManyInnerEvents instead of buffering an unbounded number of inner events; visit_events stays uncapped and backpressured (R46b).fuzz/, cargo-fuzz targets over the public parser including raw jsonb through a JSON column with an RSS limit, curated corpus) plus a scheduled non-gating CI fuzz job; the jsonb target found a real panic in the dependency on hostile opaque NEWDECIMAL input within seconds (R47b).scale ≤ precision, precision 1..=65, scale 0..=30), fractional-second precision must be 0..=6, a row-layout walk validates every packed decimal value in a row before the dependency reads it, and trailing bytes that would fabricate phantom rows are rejected. Previously a hostile table map (scale > precision) aborted the process (debug panic, release allocator abort) and hostile digit groups rendered silently wrong output in release builds.tests/perf_acceptance.rs, #[ignore]-gated, non-gating) with the initial baseline recorded in EXECUTION.md: framing-only, JSON Lines, partial-JSON diff application and CSV output metrics, median-of-11 with warmups on fixed synthetic fixtures (R42).ParserError, FormatterError, EventType, EventPayload, CellValue and Signedness are now #[non_exhaustive] (R45). Exhaustive downstream matches need a wildcard arm; the plain output structs are deliberately not annotated and remain constructible.min(16 × event size, 4,000,000) nodes): hostile aliased jsonb (a 221-byte fixture previously expanding to 8.4M nodes, ~331 bytes demanding ~275 GB) now returns a clean offset-carrying error, hostile container counts cannot pre-allocate more than 4096 slots, and multi-column amplification (100 × 181-byte bombs previously peaking at 1.69 GB) trips the per-event budget (R48, R48-refinement).Intvar.var_type and Incident.incident_type render canonical pinned names instead of library Debug formatting (R51)..gitignore, deny.toml and fuzz/ join the .crate exclude list; the MSRV CI job also checks the library-only configuration (R51).--max-inner-events (R52).partial_json with the reason — a hostile sequence previously built a document whose recursive drop/serialization aborted the process.NEWDECIMAL jsonb members return a clean offset-carrying error instead of panicking inside the dependency (scale > precision underflows the packed-size subtraction; hostile digit groups overflow the scaling multiply in debug builds) or failing open with silently wrong output in release builds — both shapes found by the new fuzz target and the round-2 verification (R47b/R52).NEWDECIMAL and friends) decode through the library’s JsonDom rendering instead of failing the whole file.--completions and every other write path go through the central broken-pipe handler: completion scripts are generated into a buffer first (clap_complete’s shell generators panic on write errors), FormatterError::Json(serde_json::Error) write failures are recognized via serde_json::Error::io_error_kind(), and a closed stdout exits 0 for every supported shell (R40).write_rows/update_rows/delete_rows instead of unknown — the payload was always decoded; only the label was wrong (the truly pre-GA codes are 20–22, which remain unknown).VAR_STRING and TYPED_ARRAY columns return an explicit unsupported-type error for the current dependency decoder.partial_json loss marker. Previously \f could update a member named f and malformed Unicode escapes could be accepted.Interrupted errors, including the final EOF probe. Other I/O errors retain their offset and terminate the stream.rust-version = "1.88" is claimed and enforced by a dedicated MSRV CI job (the crate’s let-chains set the floor; the locked uuid was pinned to 1.26.1 because 1.27+ requires 1.89).rustsec/audit-check remains on its mutable v2 tag with an explanatory comment because its commit could not be resolved over the network (R43).Documentation: the USAGE --events tables, the EventType::PartialUpdateRows rustdoc, and the library/limitation sections now describe the applied JSON-diff after image instead of the pre-R33 “not decoded” wording; the library section documents the full EventFilter (ranges, GTID allowlist) and the crates.io dependency form; stale language markers removed; the ROADMAP Contract section is annotated as the historical batch-1 spec.
remote feature now implies cli (so --no-default-features --features remote builds the binary); the unused clap dev-dependency is gone; the published .crate excludes internal engineering documents and development material (AGENT.md, EXECUTION.md, ROADMAP.md, docs/, tests/, .github/, fuzz/, .gitignore, deny.toml).--stats reuses a scratch string for by_table keys. JSON output is byte-identical.--no-default-features --features remote; the MSRV job also checks the library-only configuration; the loopback download tests no longer spend a 30 s drain bound on truncated responses.Third batch: partial JSON diff application, backlogged correctness and packaging items.
binlog_row_value_options=PARTIAL_JSON previously failed at the first row event because their table maps carry optional metadata types 14/15 that the underlying library does not know; those TLVs are now accepted (and transparently stripped before the library parses the table map, after checksum verification on the original bytes), and the JSON diff sequences in partial_update_rows after images are applied against the before image’s JSON value: an applied column renders as a full JSON document ("type": "json"), a diff that cannot be applied renders as the new loss-marking value type "type": "partial_json" carrying the preserved diffs and the reason. New payload key payload.after on partial_update_rows (one applied row image or null per row, alongside the existing before).log_pos continuity checking (R35): a header log_pos that does not land right after its event (a sign of tampering or splicing) prints a non-fatal warning: log_pos … does not match … line on stderr; parsing continues and the exit status is unaffected. The warning buffer is capped, and BinlogParser::take_warnings exposes it to library callers.absent entries instead of failing the file. A row event declaring more columns than the table map remains an error.deny.toml for cargo deny check (license and duplicate-crate policy); both the RustSec advisory scan and cargo deny check run on a daily schedule in CI.EventPayload::PartialUpdateRows gains an after: Vec<Option<RowImage>> field.cli feature (R37); library consumers can use default-features = false to drop it. The binary declares required-features = ["cli"], so --no-default-features checks the library alone.--url download aborted the process immediately before any network I/O (Linux and macOS have 8 MiB main stacks and were unaffected).O_NONBLOCK flag on accepted sockets (a BSD/macOS behavior) and bound their accept wait, so a client that never connects fails fast with its own stderr instead of hanging the suite.Second batch: compressed transaction support, range filters, statistics, completions, and download/event size limits.
NONE payloads the limit is the actual payload size plus slack, since the wire declares 0. Inner events are pre-validated like outer events and share table-map state; inner events that would rewrite parser state (nested format description, rotate, nested payload) are rejected. New payload transaction_payload { compression, uncompressed_size, events } where events are full event objects whose offset counts from the start of the decompressed stream.--start-position (inclusive) / --stop-position (exclusive, mysqlbinlog convention), --start-datetime / --stop-datetime (inclusive; YYYY-MM-DD HH:MM:SS in the system time zone or RFC3339), and --include-gtid (exact-match uuid:gno or uuid:tag:gno, repeatable; UUIDs lowercased, tags validated per MySQL tag rules, GNOs ≥ 1; only the GTID event is kept, not the whole transaction).--stats: one JSON statistics object (files, events_total, bytes_total, transactions, by_type, by_table, errors) over the kept events after all inputs; respects every other filter; --format is accepted but ignored.--completions <bash|elvish|fish|powershell|zsh>: print shell completions and exit before opening any input.--max-download-size <BYTES> (remote feature, default 4 GiB): a download exceeding the cap is aborted without leaking the URL.--max-event-size <BYTES> (default 67108864, hard limit 1 GiB, minimum 19): adjusts the per-event cap via the library’s with_max_event_size.--events transaction_payload is selectable again (it was rejected in 0.2.0 because the event was then rejected at the framing layer).head) is treated as a normal end (exit 0) instead of a broken-pipe error.start = 0 or end <= start) are rejected during pre-validation instead of overflowing the set-string renderer.ParseBuf lenenc semantics for header counts and ENUM/SET variant counts (0xfb/0xff decode as 0), so non-canonical encodings the crate accepts are no longer bypassed or falsely rejected; TLV length prefixes remain strict.--output publish no longer leaves the temporary file behind.NONE) transaction payloads (above the old 1 MiB slack) are no longer falsely rejected.--include-gtid validation tightened: tag length (≤ 32) and charset per MySQL rules; GNO 0 rejected.First batch of review fixes (event classification, CLI reliability and safety, performance, library quality, documentation, and engineering).
EventType enum (27 snake_case variants, single source of truth). New typed decoding: previous_gtids (gtid_set, a mysqlbinlog-style set string), stop (empty object), rows_query (sql), incident (incident_type, message), intvar (var_type, value), and partial_update_rows (code 39, independent payload, decoding the full before row image; the after JSON diff is intentionally not decoded).payload.gtid emits the canonical full uuid:tag:gno, with a new JSON key payload.tag (null when untagged).event_type correctly emits anonymous_gtid, payload.kind remains gtid, and gtid is ANONYMOUS (matching mysqlbinlog).rand, user_var, begin_load_query, execute_load_query, heartbeat (including code 41), ignorable, transaction_context, view_change, xa_prepare; payloads keep unknown (only raw_len). MariaDB-specific types (160+) remain unknown.-.--output atomic write: a hidden temporary file is created in the target directory (unix mode 0600), then published via link+unlink on completion, never overwriting an existing file; hard errors leave no file behind, and on partial parse failure (exit code 3) the output contains the successfully parsed prefix.--strict now aborts everything at the first error (exit code 1).BinlogParser<R: Read> (open / from_reader / with_max_event_size), pub const MAX_EVENT_SIZE (64 MiB), EventType::as_str / from_raw; all event-model types implement Serialize + Deserialize (CellValue::Bytes is a lowercase hex string; deserialization expects the same form).n_sids and table-map optional metadata TLVs (including ENUM/SET variant counts) are hand pre-validated before being handed to the underlying crate, rejecting anything beyond the remaining bytes and preventing unbounded Vec::with_capacity from aborting the process.payload.kind field tables, real output samples for all three formats, the exit-code table, an install section, a “differences from mysqlbinlog” section, and library usage examples; ROADMAP added.description, readme, keywords, categories, and [profile.release] (lto = "thin", strip = true).Swatinem/rust-cache, a concurrency group, and dependabot (cargo + github-actions, weekly).--events validation moved to argument-parse time (clap value parser); unknown values error immediately and exit with code 2 (the error message lists all valid values); transaction_payload is no longer selectable (compressed transactions are rejected at the framing layer; support planned for a later version).Formatter trait now writes directly to &mut dyn Write and returns Result<bool, FormatterError> (whether the event produced output); EventFilter fields became HashSet<EventType> and HashSet<(String, String)>; ParsedEvent.event_type changed from a string to the EventType enum (JSON serialization values unchanged); BinlogParser is now generic over R: Read.format_description.server_version is truncated at the first NUL instead of emitting padding characters.--table must have the form database.table, split at the first . into non-empty database and table names; row events with unresolved table maps do not match table filters.event_type gained new values (partial_update_rows, previous_gtids, stop, rows_query, incident, intvar, anonymous_gtid, etc.); previous_gtids, required by standard MySQL 5.7+/8.0 binlogs, no longer shows as unknown.BufReader capacity 1 MiB, table-driven hex encoding, and table matching without per-event string allocation.uuid:gno form.gtid events.update_rows in a way that failed the whole file.n_sids out of bounds) and table-map metadata TLVs no longer abort the process; they produce parse errors carrying the offset.remote feature.