API reference (Rustdoc)
The Rustdoc of every crate is published next to this book, generated from the source on each deploy. It includes the internals: private modules and functions are documented too, because contributors read them.
| Crate | What it holds |
|---|---|
| psync | #[psync::graph] and the hints, the executors (Executor, MultiExecutor), yield_now, and runtime support for generated code |
| psync-macros | the attribute entry points |
| psync-graph | the analysis and code generation: classification, access paths, effects, facts, hoisting, scheduling, loops, exits |
| psync-check | the effect model, summary files, the link step, facts for the macro |
| psync-driver | the rustc driver: MIR summaries and the checks |
| cargo-psync | cargo psync check, build, fix, summaries |
| Lean proofs (doc-gen4) | every theorem of verify/, each with its statement in mathematical notation: Schedule, World, Cert, Footprint, Certs, Tutorial |
The index page links them all. To build the site yourself:
scripts/build-site.sh. It builds the book, runs cargo doc --document-private-items for the
workspace and for psync-check (with its pinned nightly), and runs doc-gen4 on the Lean proofs
(verify/docbuild, which keeps verify/ itself free of dependencies).
In the proofs, every theorem’s documentation begins with its statement in LaTeX, so the HTML shows the mathematics first and the Lean code second. New theorems follow the same convention.