-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Rust 1.82.0 #2944
Added Rust 1.82.0 #2944
Conversation
3d83e3d
to
ca63f20
Compare
14d5269
to
d4d515d
Compare
@@ -6,6 +6,11 @@ rust_library( | |||
srcs = glob(["src/**/*.rs"]), | |||
aliases = aliases(), | |||
proc_macro_deps = all_crate_deps(proc_macro = True), | |||
# TODO: https://github.com/bazelbuild/rules_rust/issues/2947 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4bf4d17
to
e0a294f
Compare
When using rules_rust 0.54, we see this error:
This seems due to this change. Does this mean rustc < 1.74.0 is no longer supported? |
No - our CI tests that rustc 1.72.1 is supported: rules_rust/.bazelci/presubmit.yml Line 7 in 60515a1
|
Well, we are using I see there is a static binary build with musl which would work, but this is never used automatically, AFAICS. I can work around with: load("@rules_rust//crate_universe/private:urls.bzl", "CARGO_BAZEL_URLS", "CARGO_BAZEL_SHA256S")
crates_repository(
...
generator_urls = CARGO_BAZEL_URLS | {
"x86_64-unknown-linux-gnu": CARGO_BAZEL_URLS["x86_64-unknown-linux-musl"],
},
generator_sha256s = CARGO_BAZEL_SHA256S | {
"x86_64-unknown-linux-gnu": CARGO_BAZEL_SHA256S["x86_64-unknown-linux-musl"],
},
) but that leads to a different error when repinning:
Seems like the cargo-bazel binary assumes a target that is not supported by rustc 1.73.0 ? λ /home/claudio/.cache/bazel/_bazel_claudio/2fef88099e02b50d30aa33e59040bc18/external/nix_rust/bin/rustc --print target-list | grep wasm
wasm32-unknown-emscripten
wasm32-unknown-unknown
wasm32-wasi
wasm32-wasi-preview1-threads
wasm64-unknown-unknown .... OK, I can set the How do you think about using the musl binary by default (and drop the gnu binary as it has no added value and is even slightly larger)? |
I'd be happy to switch to the musl binary - want to send a PR? :) |
Sure, I'll look into that. 👍 |
https://blog.rust-lang.org/2024/10/17/Rust-1.82.0.html