@@ -1633,6 +1633,8 @@ impl Step for Extended {
1633
1633
"rust-analyzer-preview" . to_string ( )
1634
1634
} else if name == "clippy" {
1635
1635
"clippy-preview" . to_string ( )
1636
+ } else if name == "rustfmt" {
1637
+ "rustfmt-preview" . to_string ( )
1636
1638
} else if name == "miri" {
1637
1639
"miri-preview" . to_string ( )
1638
1640
} else if name == "rustc-codegen-cranelift" {
@@ -1652,7 +1654,7 @@ impl Step for Extended {
1652
1654
prepare ( "cargo" ) ;
1653
1655
prepare ( "rust-analysis" ) ;
1654
1656
prepare ( "rust-std" ) ;
1655
- for tool in & [ "clippy" , "rust-analyzer" , "rust-docs" , "miri" ] {
1657
+ for tool in & [ "clippy" , "rustfmt" , " rust-analyzer", "rust-docs" , "miri" ] {
1656
1658
if built_tools. contains ( tool) {
1657
1659
prepare ( tool) ;
1658
1660
}
@@ -1770,6 +1772,24 @@ impl Step for Extended {
1770
1772
. arg ( etc. join ( "msi/remove-duplicates.xsl" ) )
1771
1773
. run ( builder) ;
1772
1774
}
1775
+ if built_tools. contains ( "rustfmt" ) {
1776
+ command ( & heat)
1777
+ . current_dir ( & exe)
1778
+ . arg ( "dir" )
1779
+ . arg ( "rustfmt" )
1780
+ . args ( heat_flags)
1781
+ . arg ( "-cg" )
1782
+ . arg ( "RustFmtGroup" )
1783
+ . arg ( "-dr" )
1784
+ . arg ( "RustFmt" )
1785
+ . arg ( "-var" )
1786
+ . arg ( "var.RustFmtDir" )
1787
+ . arg ( "-out" )
1788
+ . arg ( exe. join ( "RustFmtGroup.wxs" ) )
1789
+ . arg ( "-t" )
1790
+ . arg ( etc. join ( "msi/remove-duplicates.xsl" ) )
1791
+ . run ( builder) ;
1792
+ }
1773
1793
if built_tools. contains ( "miri" ) {
1774
1794
command ( & heat)
1775
1795
. current_dir ( & exe)
@@ -1841,6 +1861,9 @@ impl Step for Extended {
1841
1861
if built_tools. contains ( "clippy" ) {
1842
1862
cmd. arg ( "-dClippyDir=clippy" ) ;
1843
1863
}
1864
+ if built_tools. contains ( "rustfmt" ) {
1865
+ cmd. arg ( "-dRustFmtDir=rustfmt" ) ;
1866
+ }
1844
1867
if built_tools. contains ( "rust-docs" ) {
1845
1868
cmd. arg ( "-dDocsDir=rust-docs" ) ;
1846
1869
}
@@ -1867,6 +1890,9 @@ impl Step for Extended {
1867
1890
if built_tools. contains ( "clippy" ) {
1868
1891
candle ( "ClippyGroup.wxs" . as_ref ( ) ) ;
1869
1892
}
1893
+ if built_tools. contains ( "rustfmt" ) {
1894
+ candle ( "RustFmtGroup.wxs" . as_ref ( ) ) ;
1895
+ }
1870
1896
if built_tools. contains ( "miri" ) {
1871
1897
candle ( "MiriGroup.wxs" . as_ref ( ) ) ;
1872
1898
}
@@ -1905,6 +1931,9 @@ impl Step for Extended {
1905
1931
if built_tools. contains ( "clippy" ) {
1906
1932
cmd. arg ( "ClippyGroup.wixobj" ) ;
1907
1933
}
1934
+ if built_tools. contains ( "rustfmt" ) {
1935
+ cmd. arg ( "RustFmtGroup.wixobj" ) ;
1936
+ }
1908
1937
if built_tools. contains ( "miri" ) {
1909
1938
cmd. arg ( "MiriGroup.wixobj" ) ;
1910
1939
}
0 commit comments