diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py index d076330ee4e..b44894395e6 100644 --- a/python/servo/devenv_commands.py +++ b/python/servo/devenv_commands.py @@ -30,3 +30,12 @@ class MachCommands(CommandBase): def run(self, params): return subprocess.call(["cargo"] + params, env=self.build_env()) + + @Command('rustc', + description='Run the Rust compiler', + category='devenv', + allow_all_args=True) + @CommandArgument('params', default=None, nargs='...', + help="Command-line arguments to be passed through to rustc") + def run(self, params): + return subprocess.call(["rustc"] + params, env=self.build_env())