Describe behaviour directly instead of by reference to the Go version

- platform::mode documents the on-disk mode-bit layout (bits 31..19 =
  d a l T L D p S u g c t ?, low 9 bits = permissions).
- The snapshot module documents the LEB128 / zig-zag varints and the RFC
  3339 JSON timestamps, and states that snapshots written by mapsize 1.x
  load unchanged.
- Renames: GoTime -> JsonTime, go_duration -> fmt_duration, fixture
  testdata/go.msz -> testdata/v1.2.0.msz (a snapshot written by mapsize
  1.2.0), loads_go_snapshot -> loads_1_2_snapshot.
- --log / --log-level help says they are accepted and ignored.
This commit is contained in:
Andy Dixon
2026-10-08 20:08:34 +01:00
parent fcac50bae6
commit 9179281a94
19 changed files with 113 additions and 92 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ fn start_source(
Ok((Some(s), t))
}
/// Cancels on SIGINT for report mode, like Go's signal.NotifyContext.
/// A token cancelled by SIGINT (Ctrl+C), for report mode.
fn interrupt_cancel() -> Cancel {
static CANCEL: std::sync::OnceLock<Cancel> = std::sync::OnceLock::new();
extern "C" fn on_sigint(_: libc::c_int) {