levelgen

command
v0.24.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command levelgen generates the specification-level table (concept v11 §C.5, brief S3 part 2) from parity/levels/*.json: schema/levels_gen.go, then the generated block of docs/reference/spec-levels.md. It fails when the last level is not the pin's revision or does not know an element of the pin (parity/schema.json), naming the element.

The doc's server-internal section is measured on the reference daemon: levelgen builds examples/reference-bridge (after writing levels_gen.go, which the build needs) and runs it with --dump-surface --spec-level <level> for every level below the pin. It imports neither schema nor surface itself, so it runs while levels_gen.go is missing or stale. When the measurement or the doc fails, levels_gen.go is put back as it was: a failed run leaves both files as they were (R2-P6-err-2709).

go run ./script/levelgen          # from the module root
go run ./script/levelgen -doc=false

Directories

Path Synopsis
Package leveltable reads the specification level files (parity/levels/<level>.json, extracted from matter.js's release tags by script/extract-levels-from-matter-js.ts) and renders what is generated from them: schema/levels_gen.go and the generated block of docs/reference/spec-levels.md (concept v11 §C.5, brief S3 part 2).
Package leveltable reads the specification level files (parity/levels/<level>.json, extracted from matter.js's release tags by script/extract-levels-from-matter-js.ts) and renders what is generated from them: schema/levels_gen.go and the generated block of docs/reference/spec-levels.md (concept v11 §C.5, brief S3 part 2).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL