aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/devenv_commands.py
diff options
context:
space:
mode:
authorJonathan Schwender <55576758+jschwe@users.noreply.github.com>2024-11-19 13:20:56 +0100
committerGitHub <noreply@github.com>2024-11-19 12:20:56 +0000
commit5113147f801bc6ef1f1da7d181599f13b76c0a0d (patch)
tree23b32c7e73366a0bad5a2883d60cc7e25b962f35 /python/servo/devenv_commands.py
parent26748621cda6301038647b3b3f06ed9c681c5d11 (diff)
downloadservo-5113147f801bc6ef1f1da7d181599f13b76c0a0d.tar.gz
servo-5113147f801bc6ef1f1da7d181599f13b76c0a0d.zip
mach: Remove `mach rustup` (#34287)
We don't use the nightly toolchain anymore, so this command can be removed. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
Diffstat (limited to 'python/servo/devenv_commands.py')
-rw-r--r--python/servo/devenv_commands.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py
index 0c30bc1af5b..22f425fbf17 100644
--- a/python/servo/devenv_commands.py
+++ b/python/servo/devenv_commands.py
@@ -13,7 +13,6 @@ import signal
import subprocess
import sys
import tempfile
-import urllib
from mach.decorators import (
CommandArgument,
@@ -168,24 +167,6 @@ class MachCommands(CommandBase):
["git"] + ["grep"] + params + ['--'] + grep_paths + [':(exclude)*.min.js', ':(exclude)*.min.css'],
env=self.build_env())
- @Command('rustup',
- description='Update the Rust version to latest Nightly',
- category='devenv')
- def rustup(self):
- nightly_date = urllib.request.urlopen(
- "https://static.rust-lang.org/dist/channel-rust-nightly-date.txt").read()
- new_toolchain = f"nightly-{nightly_date.decode('utf-8')}"
- old_toolchain = self.rust_toolchain()
-
- filename = path.join(self.context.topdir, "rust-toolchain.toml")
- with open(filename, "r", encoding="utf-8") as file:
- contents = file.read()
- contents = contents.replace(old_toolchain, new_toolchain)
- with open(filename, "w", encoding="utf-8") as file:
- file.write(contents)
-
- self.ensure_bootstrapped()
-
@Command('fetch',
description='Fetch Rust, Cargo and Cargo dependencies',
category='devenv')