Skip to content

Building NativeLink with Cargo

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.

Build

To build the nativelink executable:

Terminal window
cargo build --bin nativelink --profile=smol

Test

To run the tests:

Terminal window
cargo test --all --profile=smol