rules_rust icon indicating copy to clipboard operation
rules_rust copied to clipboard

Bzlmod setup does not use CARGO_BAZEL_URLS for crates universe

Open csmulhern opened this issue 2 years ago • 1 comments

The bzlmod extension appears to rely on @cargo_bazel_bootstrap directly, rather than relying on CARGO_BAZEL_URLS to skip bootstrapping, as the repository rule does.

See:

https://github.com/bazelbuild/rules_rust/blob/fe610dab73c3c61560a547bc661177dd5115fed7/crate_universe/private/module_extensions/cargo_bazel_bootstrap.bzl#L28

https://github.com/bazelbuild/rules_rust/blob/fe610dab73c3c61560a547bc661177dd5115fed7/crate_universe/private/crates_repository.bzl#L244-L249

csmulhern avatar Jan 24 '24 13:01 csmulhern

Is there any progress on this issue? This is preventing us from switching rules_rust to bzlmod (and in turn, due to complicated dependency issues, blocks our entire project from switching).

criemen avatar Feb 23 '24 09:02 criemen

This should be fixed by #2570.

cameron-martin avatar Apr 05 '24 20:04 cameron-martin

Yes, thank you.

csmulhern avatar Apr 06 '24 00:04 csmulhern