dust-bootstrap is the Rust-based bootstrap compiler for the Dust Programming Language (DPL).
This repository exists to provide a stable, trusted compiler while the primary compiler/runtime stack and dependency ecosystem are rewritten in Dust.
dust-bootstrap is used to:
- build and validate Dust-native replacements
- debug regressions during Rust-to-Dust migration
- provide a deterministic baseline for output and diagnostics parity
- continuously compile migrated
dustsoftware/*dependencies during licensing-preserving port work
Use this repository as the migration anchor:
- Keep
dust-bootstrapbuildable at all times. - Port dependencies and toolchain components to Dust in other repos/workspaces.
- Compile those ports with
dust-bootstrap. - Compare behavior/artifacts against
dust-bootstrapuntil parity is reached.
dust-bootstrap should remain conservative:
- no speculative language feature work
- prioritize correctness, determinism, and debuggability
- accept only fixes that improve bootstrap reliability or unblock migration
From this repository root:
cargo run -p dust -- --helpBuild a Dust source program:
cargo run -p dust -- build examples/K/k_hello_world.dsCheck/validate source:
cargo run -p dust -- check examples/K/k_hello_world.dsEmit object output:
cargo run -p dust -- obj examples/K/k_hello_world.ds -o target/dust/k_hello_world.oFor each migrated component (compiler module or dustsoftware repo):
- Build with
dust-bootstrap. - Run component tests/conformance checks.
- Compare diagnostics and outputs against baseline snapshots.
- Fix mismatches before advancing migration stage.
crates/- Rust implementation of the bootstrap toolchaindocs/- compiler internals and operational referencesspec/- DPL specification snapshots and related docsexamples/- sample Dust programs
The migration preserves licensing and provenance by maintaining repository-level lineage and explicit source attribution for dependency ports.
See LICENSE and per-repo metadata in the dustsoftware workspace for details.
Bootstrap status is tracked through branch/CI health and migration parity reports in project planning docs.