crane/docs/examples/cross-rust-overlay.md

339 B

To cross compile a rust project using oxalica/rust-overlay, run the following in a fresh directory:

nix flake init -t github:ipetkov/crane#cross-rust-overlay

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

{{#include ../../examples/cross-rust-overlay/flake.nix}}