crane/docs/examples/custom-toolchain.md

342 B

To build a cargo project with a custom toolchain (e.g. WASM builds), run the following in a fresh directory:

nix flake init -t github:ipetkov/crane#custom-toolchain

Alternatively, if you have an existing project already, copy and paste the following flake.nix:

{{#include ../../examples/custom-toolchain/flake.nix}}