hermet hermet SSR. Islands. Rust.

What you need

First, make sure you can use Rust, Cargo and rustup. The installation and the first hermet check and hermet build need a network connection to download dependencies. The first run takes a few minutes. The first command that builds takes 1–2 minutes to install worker-build (only once), and the first build of the site takes about 30 seconds.

Item When you need it What it is for
Rust (stable) with the wasm32-unknown-unknown target When you make a site Compiles Rust code to WebAssembly (Wasm), which runs in the Worker
worker-build (hermet installs it for you at the first build) When you build a site Makes the Wasm and the JavaScript that starts the Worker
The hermet command When you make a site Creates, checks, builds, runs locally and deploys a site. Install it with Cargo, using the commands below
A Cloudflare account and API token When you deploy Creates the Worker on Cloudflare
Node.js 22.12 or later and Wrangler 4.162.0 Only when you want to use wrangler dev instead of hermet dev (usually not needed) Runs the Worker locally with wrangler dev. Not used to build or deploy

The standard steps, hermet check, hermet build, hermet dev and hermet deploy, do not use Node.js or Wrangler. To run the Worker locally and view it in a browser, use hermet dev. The first time only, it downloads Cloudflare's Workers runtime (workerd, about 45 MB) for you.

How to install

# 1. Add the Wasm target to Rust
rustup target add wasm32-unknown-unknown

# 2. Install the hermet command from the tag of a release (hermet installs worker-build at the first build)
cargo install --git https://github.com/toshi-kuji/hermet --tag v0.2.0 hermet-cli --locked

To see which version is installed, run hermet --version. The first line is hermet 0.2.0.

If you work in a clone of the repository, run cargo install --path crates/hermet-cli from its root.

worker-build is installed by hermet

The worker-build that Hermet uses has a change that emits the Worker's entrypoints other than the Gate (in this guide, the Renderer). The version from crates.io (cargo install worker-build) has the same version number, 0.9.0, but does not emit them.

So hermet installs the version it needs at the first hermet build, hermet dev or hermet deploy. It installs it with Cargo into a cache folder (~/.cache/hermet/worker-build/ or similar) and runs it from there. You do not need to install it yourself. If the same version of worker-build is on your PATH, it uses that one. It never uses the version from crates.io. If you run hermet check --deploy before it is installed, you get a warning that the build will install it.