This directory contains some example Cargo workspaces which demonstrate how to
build and test your projects with cargo2nix
. These also serve as a suite of
integration tests to catch regressions in cargo2nix
itself.
No dependencies, just hello world
Just a program with a few dependencies. The flake expressions don't change that much. The generated nix expressions are more interesting if you want to understand the contents of a Cargo.nix.
This project can build on Linux for a variety of targets, including ARM and wasm. You can use qemu to run the results.
Independent Packaging (Rust Analyzer)
This shows how to consume someone else's Rust crate and ship a binary without the need to interact with their repository.