fix missing rustfmt and clippy for msi
This commit is contained in:
parent
f79fae3069
commit
f5577a8174
@ -1633,6 +1633,8 @@ fn filter(contents: &str, marker: &str) -> String {
|
|||||||
"rust-analyzer-preview".to_string()
|
"rust-analyzer-preview".to_string()
|
||||||
} else if name == "clippy" {
|
} else if name == "clippy" {
|
||||||
"clippy-preview".to_string()
|
"clippy-preview".to_string()
|
||||||
|
} else if name == "rustfmt" {
|
||||||
|
"rustfmt-preview".to_string()
|
||||||
} else if name == "miri" {
|
} else if name == "miri" {
|
||||||
"miri-preview".to_string()
|
"miri-preview".to_string()
|
||||||
} else if name == "rustc-codegen-cranelift" {
|
} else if name == "rustc-codegen-cranelift" {
|
||||||
@ -1652,7 +1654,7 @@ fn filter(contents: &str, marker: &str) -> String {
|
|||||||
prepare("cargo");
|
prepare("cargo");
|
||||||
prepare("rust-analysis");
|
prepare("rust-analysis");
|
||||||
prepare("rust-std");
|
prepare("rust-std");
|
||||||
for tool in &["clippy", "rust-analyzer", "rust-docs", "miri"] {
|
for tool in &["clippy", "rustfmt", "rust-analyzer", "rust-docs", "miri"] {
|
||||||
if built_tools.contains(tool) {
|
if built_tools.contains(tool) {
|
||||||
prepare(tool);
|
prepare(tool);
|
||||||
}
|
}
|
||||||
@ -1770,6 +1772,24 @@ fn filter(contents: &str, marker: &str) -> String {
|
|||||||
.arg(etc.join("msi/remove-duplicates.xsl"))
|
.arg(etc.join("msi/remove-duplicates.xsl"))
|
||||||
.run(builder);
|
.run(builder);
|
||||||
}
|
}
|
||||||
|
if built_tools.contains("rustfmt") {
|
||||||
|
command(&heat)
|
||||||
|
.current_dir(&exe)
|
||||||
|
.arg("dir")
|
||||||
|
.arg("rustfmt")
|
||||||
|
.args(heat_flags)
|
||||||
|
.arg("-cg")
|
||||||
|
.arg("RustFmtGroup")
|
||||||
|
.arg("-dr")
|
||||||
|
.arg("RustFmt")
|
||||||
|
.arg("-var")
|
||||||
|
.arg("var.RustFmtDir")
|
||||||
|
.arg("-out")
|
||||||
|
.arg(exe.join("RustFmtGroup.wxs"))
|
||||||
|
.arg("-t")
|
||||||
|
.arg(etc.join("msi/remove-duplicates.xsl"))
|
||||||
|
.run(builder);
|
||||||
|
}
|
||||||
if built_tools.contains("miri") {
|
if built_tools.contains("miri") {
|
||||||
command(&heat)
|
command(&heat)
|
||||||
.current_dir(&exe)
|
.current_dir(&exe)
|
||||||
@ -1841,6 +1861,9 @@ fn filter(contents: &str, marker: &str) -> String {
|
|||||||
if built_tools.contains("clippy") {
|
if built_tools.contains("clippy") {
|
||||||
cmd.arg("-dClippyDir=clippy");
|
cmd.arg("-dClippyDir=clippy");
|
||||||
}
|
}
|
||||||
|
if built_tools.contains("rustfmt") {
|
||||||
|
cmd.arg("-dRustFmtDir=rustfmt");
|
||||||
|
}
|
||||||
if built_tools.contains("rust-docs") {
|
if built_tools.contains("rust-docs") {
|
||||||
cmd.arg("-dDocsDir=rust-docs");
|
cmd.arg("-dDocsDir=rust-docs");
|
||||||
}
|
}
|
||||||
@ -1867,6 +1890,9 @@ fn filter(contents: &str, marker: &str) -> String {
|
|||||||
if built_tools.contains("clippy") {
|
if built_tools.contains("clippy") {
|
||||||
candle("ClippyGroup.wxs".as_ref());
|
candle("ClippyGroup.wxs".as_ref());
|
||||||
}
|
}
|
||||||
|
if built_tools.contains("rustfmt") {
|
||||||
|
candle("RustFmtGroup.wxs".as_ref());
|
||||||
|
}
|
||||||
if built_tools.contains("miri") {
|
if built_tools.contains("miri") {
|
||||||
candle("MiriGroup.wxs".as_ref());
|
candle("MiriGroup.wxs".as_ref());
|
||||||
}
|
}
|
||||||
@ -1905,6 +1931,9 @@ fn filter(contents: &str, marker: &str) -> String {
|
|||||||
if built_tools.contains("clippy") {
|
if built_tools.contains("clippy") {
|
||||||
cmd.arg("ClippyGroup.wixobj");
|
cmd.arg("ClippyGroup.wixobj");
|
||||||
}
|
}
|
||||||
|
if built_tools.contains("rustfmt") {
|
||||||
|
cmd.arg("RustFmtGroup.wixobj");
|
||||||
|
}
|
||||||
if built_tools.contains("miri") {
|
if built_tools.contains("miri") {
|
||||||
cmd.arg("MiriGroup.wixobj");
|
cmd.arg("MiriGroup.wixobj");
|
||||||
}
|
}
|
||||||
|
@ -172,6 +172,11 @@
|
|||||||
<!-- tool-rust-docs-end -->
|
<!-- tool-rust-docs-end -->
|
||||||
<Directory Id="Cargo" Name="." />
|
<Directory Id="Cargo" Name="." />
|
||||||
<Directory Id="Std" Name="." />
|
<Directory Id="Std" Name="." />
|
||||||
|
<Directory Id="RustFmt" Name="." />
|
||||||
|
<Directory Id="RustAnalyzer" Name="." />
|
||||||
|
<Directory Id="Miri" Name="." />
|
||||||
|
<Directory Id="Analysis" Name="." />
|
||||||
|
<Directory Id="Clippy" Name="." />
|
||||||
</Directory>
|
</Directory>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
@ -279,7 +284,41 @@
|
|||||||
<ComponentRef Id="PathEnvPerMachine" />
|
<ComponentRef Id="PathEnvPerMachine" />
|
||||||
<ComponentRef Id="PathEnvPerUser" />
|
<ComponentRef Id="PathEnvPerUser" />
|
||||||
</Feature>
|
</Feature>
|
||||||
|
<Feature Id="RustFmt"
|
||||||
|
Title="Formatter for rust"
|
||||||
|
Display="7"
|
||||||
|
Level="1"
|
||||||
|
AllowAdvertise="no">
|
||||||
|
<ComponentGroupRef Id="RustFmtGroup" />
|
||||||
|
</Feature>
|
||||||
|
<Feature Id="Clippy"
|
||||||
|
Title="Formatter and checker for rust"
|
||||||
|
Display="8"
|
||||||
|
Level="1"
|
||||||
|
AllowAdvertise="no">
|
||||||
|
<ComponentGroupRef Id="ClippyGroup" />
|
||||||
|
</Feature>
|
||||||
|
<Feature Id="Miri"
|
||||||
|
Title="Soundness checker for rust"
|
||||||
|
Display="9"
|
||||||
|
Level="1"
|
||||||
|
AllowAdvertise="no">
|
||||||
|
<ComponentGroupRef Id="MiriGroup" />
|
||||||
|
</Feature>
|
||||||
|
<Feature Id="RustAnalyzer"
|
||||||
|
Title="Analyzer for rust"
|
||||||
|
Display="10"
|
||||||
|
Level="1"
|
||||||
|
AllowAdvertise="no">
|
||||||
|
<ComponentGroupRef Id="RustAnalyzerGroup" />
|
||||||
|
</Feature>
|
||||||
|
<Feature Id="Analysis"
|
||||||
|
Title="Analysis for rust"
|
||||||
|
Display="11"
|
||||||
|
Level="1"
|
||||||
|
AllowAdvertise="no">
|
||||||
|
<ComponentGroupRef Id="AnalysisGroup" />
|
||||||
|
</Feature>
|
||||||
<UIRef Id="RustUI" />
|
<UIRef Id="RustUI" />
|
||||||
</Product>
|
</Product>
|
||||||
</Wix>
|
</Wix>
|
||||||
|
Loading…
Reference in New Issue
Block a user