• Home
  • Raw
  • Download

Lines Matching full:toolchain

12 # toolchain names which are automatically translated to the toolchain versions
15 # cargo.sh --version <toolchain-name> # looks up the version for the named toolchain
16 # cargo.sh +<toolchain-name> [...] # runs cargo commands with the named toolchain
17 # cargo.sh +all [...] # runs cargo commands with each toolchain
19 # The meta-toolchain "all" instructs this script to run the provided command
20 # once for each toolchain (msrv, stable, nightly).
31 echo " $0 --version <toolchain-name>" >&2
32 echo " $0 +<toolchain-name> [...]" >&2
42 # the default toolchain. This has the effect of clobbering any existing build
43 # artifacts from whatever toolchain the user has specified (e.g., `+nightly`),
63 echo "Unrecognized toolchain name: '$VERSION' (options are 'msrv', 'stable', 'nightly')" >&2
87 # cargo.sh --version <toolchain-name>
94 … echo "[cargo.sh] warning: running the same command for each toolchain (msrv, stable, nightly)" >&2
95 for toolchain in msrv stable nightly; do
96 echo "[cargo.sh] running with toolchain: $toolchain" >&2
97 $0 "+$toolchain" ${@:2}
101 # cargo.sh +<toolchain-name> [...]
103 TOOLCHAIN="$(lookup-version ${1:1})"
105 cargo "+$TOOLCHAIN" version &>/dev/null && \
106 rustup "+$TOOLCHAIN" component list | grep '^rust-src (installed)$' >/dev/null || {
107 echo "[cargo.sh] missing either toolchain '$TOOLCHAIN' or component 'rust-src'" >&2
111 …prompt "[cargo.sh] would you like to install toolchain '$TOOLCHAIN' and component 'rust-src' via '…
112 "rustup toolchain install $TOOLCHAIN -c rust-src"
115 RUSTFLAGS="$(get-rustflags ${1:1}) $RUSTFLAGS" cargo "+$TOOLCHAIN" ${@:2}