Skip to content
Opensource internals
  • Posts

File format

Tables That Pick Their Own Integer Width: How rustc Encodes Crate Metadata

Oct 21, 2026 8 min read Jay Hubbert

rustc’s rmeta tables pick their element width at runtime by stripping trailing zero bytes, and interleave the bytes of integer pairs so both numbers benefit from the compression.

RustInternalsCompilerMetadataFile formatPerformance

Read more →

38 Bytes and a Mask: Inside rustc's Incremental File Format

Oct 21, 2026 7 min read Jay Hubbert

The rustc incremental file format packs a node header into 38 bytes, keeps edges varint-encoded in memory, and streams the graph out with per-thread buffers and block-allocated …

RustInternalsCompilerIncrementalPerformanceFile format

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·