commit | 5ded5748dc748df47e22e8c5a854b45d20d57f5b | [log] [tgz] |
---|---|---|
author | Quentin Perez <qperez@staff.42.fr> | Fri Mar 22 16:45:22 2024 +0100 |
committer | GitHub <noreply@github.com> | Fri Mar 22 15:45:22 2024 +0000 |
tree | df5a77379ce30e0dfeb702abe9d6bc4746dcd56b | |
parent | 4bda11a16dae937c2c6d48675e19b4e329a13c45 [diff] |
bzlmod: fix issue with nightly versions (#2545) Hi there 👋 I tried using bzlmod with rules_rust, and I encountered an issue with the download of the toolchains. I applied a "hotfix," but I'm sure it's not the correct approach. Hence, feel free to take over the PR. ``` bazel_dep(name = "rules_rust", version = "0.40.0") rust = use_extension("@rules_rust//rust:extensions.bzl", "rust") rust.toolchain( edition = "2021", extra_target_triples = [ "aarch64-apple-ios-sim", "aarch64-apple-ios", "aarch64-linux-android", "x86_64-unknown-linux-gnu", ], rustfmt_version = "nightly/2024-02-22", versions = ["nightly/2024-02-22"], ) crate = use_extension( "@rules_rust//crate_universe:extension.bzl", "crate", ) crate.from_cargo( name = "crates", cargo_lockfile = "//:Cargo.lock", manifests = [ "//:Cargo.toml", ], ) use_repo(crate, "crates") ``` --------- Co-authored-by: UebelAndre <github@uebelandre.com>
This repository provides rules for building Rust projects with Bazel.
General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust
.
Please refer to the full documentation.