Support arbitrary toolchains with cargo wrapper script
This commit is contained in:
parent
d008dfb7ad
commit
99aecdaf65
4
cargo
4
cargo
|
@ -17,6 +17,10 @@ case "$1" in
|
||||||
toolchain="$rust_nightly"
|
toolchain="$rust_nightly"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
+*)
|
||||||
|
toolchain="${1#+}"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# shellcheck disable=SC2054 # rust_stable is sourced from rust-version.sh
|
# shellcheck disable=SC2054 # rust_stable is sourced from rust-version.sh
|
||||||
toolchain="$rust_stable"
|
toolchain="$rust_stable"
|
||||||
|
|
Loading…
Reference in New Issue