Skip to content

Layout

Where each kind of code goes.

Cargo.toml Rust workspace: Rune's rev, its [patch.crates-io] block, shared dependencies
rust-toolchain.toml one Rust toolchain for everything
package.json JavaScript workspace (Bun), with one bun.lock for every web app and package
apps/<name>/ one folder per app, native or web, with its own README, assets and scripts
crates/<name>/ Rust shared between apps
packages/<name>/ TypeScript shared between web apps
  • A new Rust app goes in apps/ and in the members list of the root Cargo.toml.
  • A new web app goes in apps/ and in workspaces in the root package.json.

Rune is pinned once, in the root Cargo.toml. When you bump it, change the rune and rune-kit entries and every line of [patch.crates-io] together, then check every app.