Crate rustc_windows_rc

Crate rustc_windows_rc 

Source
Expand description

A build script dependency to create a Windows resource file for the compiler

Uses values from the CFG_VERSION and CFG_RELEASE environment variables to set the product and file version information in the Windows resource file.

StructsΒ§

ResourceVersion πŸ”’
Windows resources store versions as four 16-bit integers.

EnumsΒ§

VersionInfoFileType
A subset of the possible values for the FILETYPE field in a Windows resource file

ConstantsΒ§

RESOURCE_TEMPLATE πŸ”’
The template for the Windows resource file.

FunctionsΒ§

compile_windows_resource_file
Create and compile a Windows resource file with the product and file version information for the rust compiler.
find_resource_compiler πŸ”’
Find the Windows SDK resource compiler rc.exe for the given architecture or target triple. Returns None if the tool could not be found.
find_tool_in_path πŸ”’
Find a tool in the directories in a given PATH-like string.
find_windows_sdk_tool πŸ”’
Find a Windows SDK tool for the given architecture or target triple. Returns None if the tool could not be found.
parse_version πŸ”’
Parse a string in the format β€œmajor.minor.patch” into a ResourceVersion. The build is set to 0. Returns None if the version string is not in the expected format.
product_name πŸ”’
write_resource_script_file πŸ”’
Writes a Windows resource script file for the rust compiler with the product and file version information into rc_path