don't set CARGO_HOME in rust

this adds a 270 MB registry cache in the output
This commit is contained in:
Anthony Sottile 2023-03-17 12:55:34 -04:00
parent d5f919e72f
commit a412e5492d

View file

@ -50,7 +50,6 @@ def _rust_toolchain(language_version: str) -> str:
def get_env_patch(target_dir: str, version: str) -> PatchesT:
return (
('CARGO_HOME', target_dir),
('PATH', (os.path.join(target_dir, 'bin'), os.pathsep, Var('PATH'))),
# Only set RUSTUP_TOOLCHAIN if we don't want use the system's default
# toolchain