[Ubuntu] get rid of post-gen rust script (#4575)

This commit is contained in:
Mikhail Koliada
2021-11-26 12:39:13 +03:00
committed by GitHub
parent 8922c7b5bf
commit af645a7b5e
4 changed files with 15 additions and 30 deletions

View File

@@ -1,6 +1,7 @@
function Initialize-RustEnvironment {
ln -sf "/usr/share/rust/.rustup" $HOME/.rustup
ln -sf "/usr/share/rust/.cargo" $HOME/.cargo
$env:PATH = "/etc/skel/.cargo/bin:/etc/skel/.rustup/bin:$($env:PATH)"
$env:RUSTUP_HOME = "/etc/skel/.rustup"
$env:CARGO_HOME = "/etc/skel/.cargo"
}
function Get-RustVersion {
@@ -52,4 +53,4 @@ function Get-RustdocVersion {
function Get-RustfmtVersion {
$rustfmtVersion = $(rustfmt --version) | Take-OutputPart -Part 1 | Take-OutputPart -Part 0 -Delimiter "-"
return "Rustfmt $rustfmtVersion"
}
}