-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce
+TOOLCHAIN
syntax for proxies.
If the first argument to a proxy is of the form `+TOOLCHAIN`, then this will be interpreted as the toolchain the user wants. That is, cargo +nightly build will be equivalent to rustup run nightly cargo build This is purely an ergonomic feature designed to reduce typing for people who frequently switch toolchains (particularly for testing). It is inspired by a similar feature in the Python launcher. **Why `+TOOLCHAIN`?** The obvious candidate (used by Python) of `-TOOLCHAIN` was a no-go. The issue is that because toolchains can have arbitrary names, it is difficult to distinguish between a toolchain and an actual argument to the proxied program in the general case. `@TOOLCHAIN` was also considered, as it reads somewhat naturally in English. However, it turns out that `@` is a meta character in Powershell, which causes the next word to simply *disappear* from the command line. Presumably, there is a reason for this. `+TOOLCHAIN` was tested and found to not need escaping with CMD, Powershell, bash, and fish.
- Loading branch information
1 parent
7f311dd
commit 990347e
Showing
4 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters