diff --git a/.cirrus.yml b/.cirrus.yml
index 4fb29f518069b66df7dd859d658b453df45e1538..28830438ac457233c956079d4ddb1ac4b1c6a9df 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -5,7 +5,7 @@ task:
   setup_script:
     - pkg install -y curl
     - curl https://sh.rustup.rs -sSf --output rustup.sh
-    - sh rustup.sh --default-toolchain nightly -y
+    - sh rustup.sh --default-toolchain nightly -y --profile=minimal
     - . $HOME/.cargo/env
     - rustup default nightly
   test_script:
@@ -19,7 +19,7 @@ task:
   setup_script:
     - pkg install -y curl
     - curl https://sh.rustup.rs -sSf --output rustup.sh
-    - sh rustup.sh -y
+    - sh rustup.sh -y --profile=minimal
     - . $HOME/.cargo/env
     - rustup default stable
   test_script:
@@ -34,7 +34,7 @@ task:
   setup_script:
     - pkg install -y curl
     - curl https://sh.rustup.rs -sSf --output rustup.sh
-    - sh rustup.sh --default-toolchain nightly -y
+    - sh rustup.sh --default-toolchain nightly -y --profile=minimal
     - . $HOME/.cargo/env
     - rustup default nightly
   test_script:
diff --git a/ci/azure-install-rust.yml b/ci/azure-install-rust.yml
index 87a41ec57d5f13f1ff47bd7804dafc3ef9260451..e78fe32faf6d08a0a2d779e2819b879e9900cc32 100644
--- a/ci/azure-install-rust.yml
+++ b/ci/azure-install-rust.yml
@@ -6,10 +6,12 @@ steps:
         toolchain=nightly
       fi
       if command -v rustup; then
+        # Uncomment when rustup on Azure is updated
+        #rustup set profile minimal
         rustup update $toolchain
         rustup default $toolchain
       else
-        curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $toolchain
+        curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $toolchain --profile=minimal
         echo "##vso[task.prependpath]$HOME/.cargo/bin"
       fi
     displayName: Install rust (unix)
@@ -17,6 +19,8 @@ steps:
   - script: |
       @echo on
       if not defined TOOLCHAIN set TOOLCHAIN=nightly
+      :: Uncomment when rustup on Azure is updated
+      ::rustup set profile minimal
       rustup update --no-self-update %TOOLCHAIN%-%TARGET%
       rustup default %TOOLCHAIN%-%TARGET%
     displayName: Install rust (windows)