RESOURCE_TEMPLATE in rustc_windows_rc - Rust
Description: The template for the Windows resource file.

Skip to main content

## RESOURCE_TEMPLATE

# Constant RESOURCE_TEMPLATE

Source

    pub(crate) const RESOURCE_TEMPLATE: &str = "// A template for the rustc_driver and rustc Windows resource files.\n// This file is processed by the build script to produce rustc.rc and rustc_driver.rc\n// with the appropriate version information filled in.\n\n// All the strings are in UTF-8\n#pragma code_page(65001)\n\n#define RUSTC_FILEDESCRIPTION_STR \"@RUSTC_FILEDESCRIPTION_STR@\"\n#define RUSTC_FILETYPE @RUSTC_FILETYPE@\n#define RUSTC_FILEVERSION_QUAD @RUSTC_FILEVERSION_QUAD@\n#define RUSTC_FILEVERSION_STR \"@RUSTC_FILEVERSION_STR@\"\n\n#define RUSTC_PRODUCTNAME_STR \"@RUSTC_PRODUCTNAME_STR@\"\n#define RUSTC_PRODUCTVERSION_QUAD @RUSTC_PRODUCTVERSION_QUAD@\n#define RUSTC_PRODUCTVERSION_STR \"@RUSTC_PRODUCTVERSION_STR@\"\n\n\n1 VERSIONINFO\nFILEVERSION RUSTC_FILEVERSION_QUAD\nPRODUCTVERSION RUSTC_PRODUCTVERSION_QUAD\nFILEOS  0x00040004\nFILETYPE RUSTC_FILETYPE\nFILESUBTYPE 0\nFILEFLAGSMASK 0x3f\nFILEFLAGS 0x0\n{\n    BLOCK \"StringFileInfo\"\n    {\n        BLOCK \"000004b0\"\n        {\n            VALUE \"FileDescription\", RUSTC_FILEDESCRIPTION_STR\n            VALUE \"FileVersion\", RUSTC_FILEVERSION_STR\n            VALUE \"ProductVersion\", RUSTC_PRODUCTVERSION_STR\n            VALUE \"ProductName\", RUSTC_PRODUCTNAME_STR\n        }\n    }\n    BLOCK \"VarFileInfo\" {\n        VALUE \"Translation\", 0x0, 0x04b0\n    }\n}\n";

Expand description

The template for the Windows resource file.