Skip to content

Commit 1cf405c

Browse files
committed
cleanup and document VersionInfoFileType enum
1 parent 037c462 commit 1cf405c

File tree

1 file changed

+7
-5
lines changed
  • compiler/rustc_windows_rc/src

1 file changed

+7
-5
lines changed

compiler/rustc_windows_rc/src/lib.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ use cc::windows_registry;
99
/// The template for the Windows resource file.
1010
const 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)]
1717
pub 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.

0 commit comments

Comments
 (0)