Contributing
Commands
Section titled “Commands”tools/gate.sh # the push gate: fmt, clippy -D warnings, testscargo test --workspace # the tests alonetools/web-build.sh # the wasm modules into web/dist/, with their sizestools/trace-diff.sh # compare traces/ with the last release's tracesLayout
Section titled “Layout”| Path | What it is |
|---|---|
crates/walkit |
The engine. |
crates/walkit-trace |
Runs a scenario on a stepped clock and writes its trace. |
crates/walkit-web |
The engine as a wasm module with wk_* exports and host_* imports. |
crates/walkit-android |
The engine as libwalkit.so, the native methods of nl.mattix.walkit.Native. |
android/ |
The AAR nl.mattix.walkit:walkit and its Kotlin API. |
web/ |
The JS host: the embedding package, the player page and the trace runners. |
tools/ |
The gate, the trace diff and the web build. |
docs/ |
This site. |
- Every source file starts with
// SPDX-License-Identifier: GPL-3.0-or-later. - The engine crate forbids unsafe code. Only
walkit-webandwalkit-androiduse it, for their exports, imports and handles. - Scripts are untrusted input. Every loop, stack and allocation in the VM has a limit.
- The engine has no file, screen, font, clock or thread access. Those come from the host.
- Every public item has a doc comment (
#![warn(missing_docs)]), and clippy’s pedantic set is on for the workspace. - Run
tools/gate.shbefore every push. The lefthook pre-push hook runs it. - Commit subjects follow Conventional Commits.
This site
Section titled “This site”The guide is a Starlight site in docs/, and the API reference
is rustdoc. To build both:
cd docs && npm ci && npm run build && cd ..cargo doc -p walkit --no-depscp -r target/doc docs/dist/apinpm run dev in docs/ serves the guide with live reload. A push to main that touches
docs/ or the engine publishes the site to GitHub Pages.