commit | df80ce61e418ea1c45c5bd51f88a440a7fb9ebc9 | [log] [tgz] |
---|---|---|
author | Matt Mackay <mattem@gmail.com> | Fri May 17 12:59:51 2024 -0400 |
committer | GitHub <noreply@github.com> | Fri May 17 16:59:51 2024 +0000 |
tree | 9d363b4faebc35695d5ca9c002e6c5513ea40270 | |
parent | 0d8d3e02b05ff7ad5755367d719f6e3abbdb459c [diff] |
fix: default rustfmt version to supplied rust version (#2660) Modifies the default of `rustfmt_version` so that it uses the first version in the `versions` list. If there are multiple versions given then falls back to the original default of `DEFAULT_NIGHTLY_VERSION`. We tripped over this where supply a single Rust version (non-nightly), but started using nightly features in `rustfmt.toml` and could no longer format directly with `cargo fmt`. This helped align the versions of both toolchains. --------- Co-authored-by: Daniel Wagner-Hall <dwagnerhall@apple.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.