File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
compiler/rustc_windows_rc/src Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,16 @@ use cc::windows_registry;
99/// The template for the Windows resource file.
1010const RESOURCE_TEMPLATE : & str = include_str ! ( "../rustc.rc.in" ) ;
1111
12- const VFT_APP : u32 = 0x00000001 ; // VFT_APP
13- const VFT_DLL : u32 = 0x00000002 ; // VFT_DLL
14-
12+ /// A subset of the possible values for the `FILETYPE` field in a Windows resource file
13+ ///
14+ /// See the `dwFileType` member of [VS_FIXEDFILEINFO](https://learn.microsoft.com/en-us/windows/win32/api/verrsrc/ns-verrsrc-vs_fixedfileinfo#members)
1515#[ derive( Debug , Clone , Copy ) ]
1616#[ repr( u32 ) ]
1717pub enum VersionInfoFileType {
18- App = VFT_APP ,
19- Dll = VFT_DLL ,
18+ /// `VFT_APP` - The file is an application.
19+ App = 0x00000001 ,
20+ /// `VFT_DLL` - The file is a dynamic link library.
21+ Dll = 0x00000002 ,
2022}
2123
2224/// Create and compile a Windows resource file with the product and file version information for the rust compiler.
You can’t perform that action at this time.
0 commit comments