These instructions contain information on how to work with NativeLink for Cargo users.
If you’re using the Nix flake you’re all set.
If you’re running outside of nix, install Cargo via rustup.
rustup
To build the nativelink executable:
nativelink
cargo build --bin nativelink --profile=smol
cargo build --bin nativelink
cargo build --bin nativelink --release
To run the tests:
cargo test --all --profile=smol
cargo test --all
cargo test --all --release