@@ -1627,6 +1627,8 @@ impl Step for Extended {
1627
1627
"rust-analyzer-preview" . to_string ( )
1628
1628
} else if name == "clippy" {
1629
1629
"clippy-preview" . to_string ( )
1630
+ } else if name == "rustfmt" {
1631
+ "rustfmt-preview" . to_string ( )
1630
1632
} else if name == "miri" {
1631
1633
"miri-preview" . to_string ( )
1632
1634
} else if name == "rustc-codegen-cranelift" {
@@ -1646,7 +1648,7 @@ impl Step for Extended {
1646
1648
prepare ( "cargo" ) ;
1647
1649
prepare ( "rust-analysis" ) ;
1648
1650
prepare ( "rust-std" ) ;
1649
- for tool in & [ "clippy" , "rust-analyzer" , "rust-docs" , "miri" ] {
1651
+ for tool in & [ "clippy" , "rustfmt" , " rust-analyzer", "rust-docs" , "miri" ] {
1650
1652
if built_tools. contains ( tool) {
1651
1653
prepare ( tool) ;
1652
1654
}
@@ -1764,6 +1766,24 @@ impl Step for Extended {
1764
1766
. arg ( etc. join ( "msi/remove-duplicates.xsl" ) )
1765
1767
. run ( builder) ;
1766
1768
}
1769
+ if built_tools. contains ( "rustfmt" ) {
1770
+ command ( & heat)
1771
+ . current_dir ( & exe)
1772
+ . arg ( "dir" )
1773
+ . arg ( "rustfmt" )
1774
+ . args ( heat_flags)
1775
+ . arg ( "-cg" )
1776
+ . arg ( "RustFmtGroup" )
1777
+ . arg ( "-dr" )
1778
+ . arg ( "RustFmt" )
1779
+ . arg ( "-var" )
1780
+ . arg ( "var.RustFmtDir" )
1781
+ . arg ( "-out" )
1782
+ . arg ( exe. join ( "RustFmtGroup.wxs" ) )
1783
+ . arg ( "-t" )
1784
+ . arg ( etc. join ( "msi/remove-duplicates.xsl" ) )
1785
+ . run ( builder) ;
1786
+ }
1767
1787
if built_tools. contains ( "miri" ) {
1768
1788
command ( & heat)
1769
1789
. current_dir ( & exe)
@@ -1835,6 +1855,9 @@ impl Step for Extended {
1835
1855
if built_tools. contains ( "clippy" ) {
1836
1856
cmd. arg ( "-dClippyDir=clippy" ) ;
1837
1857
}
1858
+ if built_tools. contains ( "rustfmt" ) {
1859
+ cmd. arg ( "-dRustFmtDir=rustfmt" ) ;
1860
+ }
1838
1861
if built_tools. contains ( "rust-docs" ) {
1839
1862
cmd. arg ( "-dDocsDir=rust-docs" ) ;
1840
1863
}
@@ -1861,6 +1884,9 @@ impl Step for Extended {
1861
1884
if built_tools. contains ( "clippy" ) {
1862
1885
candle ( "ClippyGroup.wxs" . as_ref ( ) ) ;
1863
1886
}
1887
+ if built_tools. contains ( "rustfmt" ) {
1888
+ candle ( "RustFmtGroup.wxs" . as_ref ( ) ) ;
1889
+ }
1864
1890
if built_tools. contains ( "miri" ) {
1865
1891
candle ( "MiriGroup.wxs" . as_ref ( ) ) ;
1866
1892
}
@@ -1899,6 +1925,9 @@ impl Step for Extended {
1899
1925
if built_tools. contains ( "clippy" ) {
1900
1926
cmd. arg ( "ClippyGroup.wixobj" ) ;
1901
1927
}
1928
+ if built_tools. contains ( "rustfmt" ) {
1929
+ cmd. arg ( "RustFmtGroup.wixobj" ) ;
1930
+ }
1902
1931
if built_tools. contains ( "miri" ) {
1903
1932
cmd. arg ( "MiriGroup.wixobj" ) ;
1904
1933
}
0 commit comments