From 605684995f0ff77b8fa45004d315ca1d37c52e3b Mon Sep 17 00:00:00 2001 From: Keenan Gugeler Date: Fri, 11 Nov 2022 13:20:08 -0500 Subject: [PATCH] executors/RUST: remove `DMOJ_CARGO_OFFLINE` Closes #1076. --- dmoj/executors/RUST.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dmoj/executors/RUST.py b/dmoj/executors/RUST.py index a73f9159f..68b99ecc2 100644 --- a/dmoj/executors/RUST.py +++ b/dmoj/executors/RUST.py @@ -3,7 +3,6 @@ from dmoj.cptbox.filesystem_policies import ExactFile, RecursiveDir from dmoj.executors.compiled_executor import CompiledExecutor -from dmoj.utils.os_ext import bool_env CARGO_TOML = b"""\ [package] @@ -91,9 +90,7 @@ def get_versionable_commands(cls): return [('rustc', os.path.join(os.path.dirname(cls.get_command()), 'rustc'))] def get_compile_args(self): - args = [self.get_command(), 'build', '--release', '--target-dir', self.get_shared_target()] - if bool_env('DMOJ_CARGO_OFFLINE'): - args += ['--offline'] + args = [self.get_command(), 'build', '--release', '--offline', '--target-dir', self.get_shared_target()] return args def get_compiled_file(self):