Add missed Rust tools to the documentation for Win (#2401)

* Add documentation for rust tools

* Rename helpers

* Remove duplicates
This commit is contained in:
Sergey Dolin
2021-01-12 13:29:05 +05:00
committed by GitHub
parent 1d5d519fc5
commit ecc81aa902
2 changed files with 32 additions and 2 deletions

View File

@@ -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
}