Skip to main content

Module dump_writer

Module dump_writer 

Source
Expand description

Writer for Rust-native kernel dump files Writer for Rust-native kernel dump files.

Serializes the State diff (from snapshot/diff_from_snapshot) into a compact text format that can be loaded back efficiently.

This is the “DumpFile” equivalent from Perl’s TeX_Job.pool.ltxml. The workflow follows Perl’s Makefile.PL “make formats” scaffold:

  1. take_snapshot() — before processing latex.ltx
  2. Process latex.ltx through the engine
  3. diff_snapshot() — find what changed
  4. write_dump() — serialize the diff
  5. At runtime: load_dump() restores the state

Functions§

write_dump
Write a state diff to a dump file. Returns the number of entries successfully written.