Add Rust lang

This commit is contained in:
Hannes Moser 2022-11-21 10:38:58 +01:00
parent 207a35971c
commit 2001e1f9f1
No known key found for this signature in database
GPG key ID: 6780A04E9672CA89
8 changed files with 72 additions and 1 deletions

View file

@ -61,6 +61,18 @@ function print_golang_args() {
printf -- "--build-arg GOLANG_DOWNLOAD_SHA256=%q " "${GOLANG_DOWNLOAD_SHA256[*]}"
}
function print_rust_args() {
case "$1" in
1.65.0)
RUST_VERSION="1.65.0"
;;
*) fail "Unknown rust version $1" ;;
esac
printf -- "--build-arg RUST_VERSION=%s " "$RUST_VERSION"
}
# If you add a new minor version here, be sure to check that the
# Chrome versions can be found at https://www.ubuntuupdates.org/pm/google-chrome-stable.
# ChromeDriver supports this: https://sites.google.com/chromium.org/driver/downloads
@ -339,6 +351,7 @@ function parse_arguments() {
BUNDLER) print_bundler_args $version ;;
RUBYGEMS) print_rubygems_args $version ;;
GOLANG) print_golang_args $version ;;
RUST) print_rust_args $version ;;
CHROME) print_chrome_args $version ;;
DOCKER) print_docker_args $version ;;
BUILDX) print_buildx_args $version ;;