You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
prost: rust_prost_aspect requires a rustfmt toolchain #4440
rust_prost_aspect lists @rules_rust//rust/rustfmt:toolchain_type as a mandatory toolchain, so rust_prost_library fails analysis on any execution platform without a registered rustfmt_toolchain:
ERROR: No matching toolchains found for types:
@@rules_rust+//rust/rustfmt:toolchain_type
The formatting is cosmetic: _compile_proto already skips --rustfmt when the toolchain is None, and protoc_wrapper treats it as optional. A mandatory toolchain also means prost codegen always fetches a rustfmt repository, which today unpacks a full rustc as well (roughly 400 MB).
Repro: a module with rust.toolchain(rustfmt_toolchain_triples = {"s390x-unknown-linux-gnu": "..."}) on an x86_64 host and any rust_prost_library.
Proposal: declare the toolchain with config_common.toolchain_type(..., mandatory = False) and leave the generated code unformatted when none resolves, as rustfmt_toolchain_alias already allows.
Activity