Skip to content

No such target '@rust_darwin_aarch64//:cargo' #519

Open

Description

I'm upgrading a project to newer versions of rules_rust (0.9) and cargo-raze (0.16), and am now running into an error when running bazel run @cargo-raze//:raze on an M1 machine:

/external/cargo_raze/tools/BUILD.bazel:44:6: no such target '@rust_darwin_aarch64//:cargo': target 'cargo' not declared in package '' defined by /external/rust_darwin_aarch64/BUILD.bazel and referenced by '@cargo_raze//tools:cargo'
ERROR: /external/cargo_raze/tools/BUILD.bazel:55:6: no such target '@rust_darwin_aarch64//:rustc': target 'rustc' not declared in package '' defined by /external/rust_darwin_aarch64/BUILD.bazel and referenced by '@cargo_raze//tools:rustc

Is there any obvious config I might be missing? I have:

targets = [
    "x86_64-unknown-linux-gnu",
    "aarch64-apple-darwin"
]

in my Cargo.toml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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