Support arbitrary toolchains with cargo wrapper script

This commit is contained in:
Trent Nelson 2020-10-15 11:37:17 -06:00 committed by mergify[bot]
parent d008dfb7ad
commit 99aecdaf65
1 changed files with 4 additions and 0 deletions

4
cargo
View File

@ -17,6 +17,10 @@ case "$1" in
toolchain="$rust_nightly"
shift
;;
+*)
toolchain="${1#+}"
shift
;;
*)
# shellcheck disable=SC2054 # rust_stable is sourced from rust-version.sh
toolchain="$rust_stable"