Set up the platform
This tutorial gets the published platform building on your machine. By the end you will have the host workspace checked out and verified.
Prerequisites
- A recent stable Rust toolchain (1.80 or newer) and
cargo. git.
Clone the repos
The platform is split across sibling repositories. Start with host — the platform workspace — and kernel, which holds the calculus and the Language data schema:
git clone https://github.com/handl-lang/host
git clone https://github.com/handl-lang/kernelClone them as siblings — host's [patch] table resolves kernel crates from ../kernel for local development:
work/
├── host/
└── kernel/The generic engines live in their own repos; clone the ones you need:
git clone https://github.com/handl-lang/engine-lex
git clone https://github.com/handl-lang/engine-parse
git clone https://github.com/handl-lang/engine-transform
git clone https://github.com/handl-lang/engine-exec
git clone https://github.com/handl-lang/engine-exec-tree-walkAnd the canonical language data:
git clone https://github.com/handl-lang/kit-prelude-langBuild and test
cd host
cargo check --workspace
cargo test --workspaceThe handl-platform contract crate is crates/platform; everything in the tutorials builds on it.
What is not here
The hnl CLI, the editor extensions, the toolchain engines (formatter, linter, typechecker, compilers), the curated kits, and the standard library are not yet released — there is nothing to install. What you can build today is a host binary of your own, which is the next tutorial.
Next steps
- Build a host — create a binary that composes plugins and runs a capability.
- Write a plugin — implement
Pluginand contribute a rule.