* Add convenience script for working in stability branches
* Update scripts/curgo.sh
Co-authored-by: Michael Vines <mvines@gmail.com>
* re{locate,name} to /cargo
Co-authored-by: Michael Vines <mvines@gmail.com>
(cherry picked from commit ed95071c27
)
Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
27
cargo
Executable file
27
cargo
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# shellcheck source=ci/rust-version.sh
|
||||||
|
here=$(dirname "$0")
|
||||||
|
|
||||||
|
source "${here}"/ci/rust-version.sh all
|
||||||
|
|
||||||
|
toolchain=
|
||||||
|
case "$1" in
|
||||||
|
stable)
|
||||||
|
# shellcheck disable=SC2054 # rust_stable is sourced from rust-version.sh
|
||||||
|
toolchain="$rust_stable"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
nightly)
|
||||||
|
# shellcheck disable=SC2054 # rust_nightly is sourced from rust-version.sh
|
||||||
|
toolchain="$rust_nightly"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# shellcheck disable=SC2054 # rust_stable is sourced from rust-version.sh
|
||||||
|
toolchain="$rust_stable"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
set -x
|
||||||
|
exec cargo "+${toolchain}" "${@}"
|
Reference in New Issue
Block a user