Downloads of v 1.21.1:


Last Update:

22 Jun 2020

Package Maintainer(s):

Software Author(s):

  • Mozilla


rustup rust

rustup (Install)

This is not the latest version of rustup (Install) available.

1.21.1 | Updated: 22 Jun 2020



Downloads of v 1.21.1:



Software Author(s):

  • Mozilla


rustup rust

rustup (Install) 1.21.1

This is not the latest version of rustup (Install) available.

All Checks are Passing

2 Passing Test

Validation Testing Passed

Verification Testing Passed


To install rustup (Install), run the following command from the command line or from PowerShell:


To upgrade rustup (Install), run the following command from the command line or from PowerShell:


To uninstall rustup (Install), run the following command from the command line or from PowerShell:


NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade rustup.install -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade rustup.install -y --source="'STEP 3 URL'"

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure rustup.install installed
    name: rustup.install
    state: present
    version: 1.21.1
    source: STEP 3 URL

See docs at

Coming early 2020! Central Managment Reporting available now! More information...

chocolatey_package 'rustup.install' do
  action    :install
  version  '1.21.1'
  source   'STEP 3 URL'

See docs at

    Name: rustup.install,
    Version: 1.21.1,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller rustup.install
   Name     = 'rustup.install'
   Ensure   = 'Present'
   Version  = '1.21.1'
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'rustup.install':
  provider => 'chocolatey',
  ensure   => '1.21.1',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install rustup.install version="1.21.1" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package is likely a meta/virtual (*) or an installer (*.install) or portable (*.portable) application package.

  • Meta/virtual (*) - has a dependency on the *.install or the *.portable package - it is provided for discoverability and for other packages to take a dependency on.
  • Portable (*.portable/*.commandline (deprecated naming convention)/*.tool (deprecated naming convention)) - usually zips or archives that require no administrative access to install.
  • Install (*.install/*.app (deprecated naming convention)) - uses native installers, usually requires administrative access to install.

Learn more about chocolatey's distinction of installed versus portable apps and/or learn about this kind of package.

This package was approved by moderator mwallner on 11 Jul 2020.


This package installs rustup the toolchain installer for The Rust Programming Language from the official release channels, enabling you to easily switch between stable, beta, and nightly compilers and keep them updated.

Note that this only installs rustup, to install a toolchain run rustup toolchain install stable-x86_64-pc-windows-msvc replacing your target toolchain.

For convenience, omitted elements of the target triple will be inferred, so the above could be written rustup toolchain install stable-msvc or even rustup toolchain default stable-msvc to install the toolchain as the default one.

Please, run rustup --help to see the available commands, rustup target list to get a list of target toolchains and rustup toolchain --help for help managing toolchains.

NOTE: If you're a Windows Subsystem for Linux user do not install this package but run the following in your terminal, then follow the onscreen instructions to install Rust.

curl --proto '=https' --tlsv1.2 -sSf | sh

$ErrorActionPreference = 'Stop'; 

$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = '' 
$url64 = ''

$packageArgs = @{
    packageName    = $env:ChocolateyPackageName
    unzipLocation  = $toolsDir
    fileType       = 'exe' 
    url            = $url
    url64bit       = $url64

    softwareName   = 'rustup*' 

    checksum       = 'B98D6677B55DB9C7DA8582A6279FF841DD49CEE93CD9BB67F9773995F1083F41'
    checksumType   = 'sha256' 
    checksum64     = '9F9E33FA4759075EC60E4DA13798D1D66A4C2F43C5500E08714399313409DCF5'
    checksumType64 = 'sha256' 

    silentArgs     = '-v -y' # it seems we need '-v -y' starting with 1.9.0 to get rustup copied to the .cargo\bin folder.

    validExitCodes = @(0, -1073741515) # workaround for choco-verifier on win2012r2x64 (Windows Server 2012 R2 x64)

Install-ChocolateyPackage @packageArgs 

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
rustup (Install) 1.21.1 506 Monday, June 22, 2020 Approved
rustup (Install) 1.19.0 2884 Friday, September 27, 2019 Approved
rustup (Install) 1.18.3 848 Wednesday, July 10, 2019 Approved

This package has no dependencies.

Discussion for the rustup (Install) Package

Ground Rules:

  • This discussion is only about rustup (Install) and the rustup (Install) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or rustup (Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus