Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Crates shipped on Windows are no_std

Status: accepted. Date: 2026-11-05.

Rust's standard library has required Windows 10 since 1.78. The Windows 7 targets are tier 3: no prebuilt standard library, a nightly compiler, and no upstream CI. A spike on 2026-11-05 showed that route works today (a std program built with -Zbuild-std for x86_64-win7-windows-gnu imports only kernel32, ntdll and msvcrt.dll), but it would tie every build to a nightly that can break without notice. A second spike showed that #![no_std] plus alloc builds on stable Rust for the ordinary x86_64-pc-windows-gnu target and imports nothing we did not call ourselves.

We chose no_std: every crate that ships in the Windows binary, the Hook, and the Scraper is #![no_std] with alloc, on stable Rust. The standard library is allowed only in the Linux and macOS platform crates, in the wgpu backend, and under cfg(test).

Consequences

  • The Windows platform layer (threads, locks, channels, files, processes, timers) is ours, written over windows-sys. It is a few hundred lines and matches the File Pilot model we already chose.
  • Third-party crates on Windows must be no_std. The ones we need are: cosmic-text, windows-sys, hashbrown. See dependencies.md.
  • Unit tests run natively on stable Linux with the standard library enabled under cfg(test).
  • The nightly route stays documented in the spike notes as the escape hatch if a crate we cannot do without ever needs std on Windows.