First-class cross-platform CLI (rune) for creating, checking, and running Rune applications without repository scripts, Bash, or Python.
cargo install --git https://github.com/anomalyco/rune --rev <dev-rev> rune-cliOr from a local Rune checkout:
cargo install --path crates/rune-clirune new <name>— scaffolds a working Rune app with a pinnedrunedependency, matching[patch.crates-io]entries,[features] hot = ["rune/hot"],[profile.rune-hot],rune.toml, a live-patchablesrc/view.rs, and a headless spring test. Pass--path <rune-dir>to target a local Rune checkout, or--rev <sha>/--git <url>to customize the pin.rune dev— runs your app in development mode:- On macOS and Linux with Dioxus CLI
0.7.10(dx) installed and[features] hotpresent, runs guarded live function-body hot patching (with the AST contract guard embedded directly inrune, so no external guard binary or Python/Bash script is needed) and automatically rebuilds and relaunches on structural/state edits. - When
dx0.7.10is not installed — or by default on Windows, where upstreamdx0.7.10dylib patching is experimental — automatically falls back to a native watch-and-restartcargo runloop. Pass--mode hotto requiredxhot patching or--mode restartto always use watch-and-restart.
- On macOS and Linux with Dioxus CLI
rune check— verifies Rune git URL, revision,[patch.crates-io]list, andCargo.lockalignment (plus optional--wasm-bindgen-cli), then runscargo check(or--pins-only).rune doctor— inspectsrustc,cargo, platform prerequisites (Windows GNUdlltool, Linuxlibxkbcommon/libwayland-client),dx0.7.10status, and the current project's config and pins.
Defaults can be placed in rune.toml:
[dev]
patch = ["src/view.rs", "src/ui/**/*.rs"]
features = []
bin = "my-app"Or in Cargo.toml under [package.metadata.rune.dev]. Precedence is: built-in defaults < Cargo.toml metadata < rune.toml < CLI flags.