bazelbuild / rules_rust

Rust rules for Bazel
https://bazelbuild.github.io/rules_rust/
Apache License 2.0
667 stars 431 forks source link

surprising toolchain resolution for rustfmt and clippy #2988

Open ajwerner opened 16 hours ago

ajwerner commented 16 hours ago

I'm sure I don't understand what's going on exactly, but I have a situation where a rust_library depends on some go binaries that are cross compiled, and that leads to my being unable to use the rustfmt and clippy aspects. I am generally surprised by the need to resolve those toolchains to begin with. Does anybody know why such toolchains would be resolved? It seems like it doesn't matter what platform the target is being built for.

UebelAndre commented 16 hours ago

Can you post a small repro?