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Β§
- Resource
Version π - Windows resources store versions as four 16-bit integers.
EnumsΒ§
- Version
Info File Type - 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. ReturnsNone
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. ReturnsNone
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