Skip to content

aya-build should not require rustup or a nightly compiler #1329

@SuperSandro2000

Description

@SuperSandro2000

When packaging things for NixOS, there is no rustup in the build environment and it cannot be simply added because it needs networking to properly function. Nixpkgs provides a rust compiler and cargo with crates prefetched in an earlier step and hashed.
It would make things a lot easier if no patching would be required to remove rustup and nightly requirements around here https://github.com/aya-rs/aya/blob/main/aya-build/src/lib.rs#L62 .
A build command constructed like the following works for us without any issues.

    let mut cmd = Command::new("cargo");
    cmd.args([
        "build",
        "--bins",
        "--message-format=json",
        "--release",
        "--target",
        &target,
    ]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions