Commit b96e37e
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 <[email protected]>1 parent a09c6d9 commit b96e37e
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
723 | | - | |
| 723 | + | |
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| 735 | + | |
735 | 736 | | |
736 | 737 | | |
737 | 738 | | |
| |||
0 commit comments