commit | b96e37ecf435d032435ad66f547a6599a16467d2 | [log] [tgz] |
---|---|---|
author | DolceTriade <hmodi@aviatrix.com> | Sun Nov 26 02:43:48 2023 +0530 |
committer | GitHub <noreply@github.com> | Sat Nov 25 13:13:48 2023 -0800 |
tree | ceaa7699e5c5135fc2e549765a9d2aa0bec5e2d5 | |
parent | a09c6d9de380c9a7e56f87e165117510cb4be893 [diff] |
crate_universe: Allow passing extra args down to crate_universe_bootstrap (#2279) this is useful for rules_nixpkgs which allows us to specify an external rust toolchain controlled by Nix. Currently, we are required to carry a patch to modify rules_rust: https://github.com/tweag/rules_nixpkgs/tree/master/examples/toolchains/rust Now we can add something like this to our WORKSPACE to use a custom cargo and rustc: ``` crate_universe_dependencies( bootstrap = True, rust_toolchain_cargo_template = "@nix_rust//:bin/{tool}", rust_toolchain_rustc_template = "@nix_rust//:bin/{tool}", ) ``` --------- 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.