mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 05:48:07 +00:00
Add missed Rust tools to the documentation for Win (#2401)
* Add documentation for rust tools * Rename helpers * Remove duplicates
This commit is contained in:
@@ -42,6 +42,31 @@ function Get-RustVersion {
|
||||
return $rustVersion
|
||||
}
|
||||
|
||||
function Get-RustupVersion {
|
||||
$version = [regex]::matches($(rustup --version), "\d+\.\d+\.\d+").Value
|
||||
return $version
|
||||
}
|
||||
|
||||
function Get-RustCargoVersion {
|
||||
$version = [regex]::matches($(cargo --version), "\d+\.\d+\.\d+").Value
|
||||
return $version
|
||||
}
|
||||
|
||||
function Get-RustdocVersion {
|
||||
$version = [regex]::matches($(rustdoc --version), "\d+\.\d+\.\d+").Value
|
||||
return $version
|
||||
}
|
||||
|
||||
function Get-RustfmtVersion {
|
||||
$version = [regex]::matches($(rustfmt --version), "\d+\.\d+\.\d+").Value
|
||||
return $version
|
||||
}
|
||||
|
||||
function Get-RustClippyVersion {
|
||||
$version = [regex]::matches($(cargo clippy --version), "\d+\.\d+\.\d+").Value
|
||||
return $version
|
||||
}
|
||||
|
||||
function Get-BindgenVersion {
|
||||
return bindgen --version
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user