A Cargo
build script library to
handle inclusion of Windows icons, version information and application
manifests without the use of external .rc
files.
Inspired by and using embedresource.
Use embedresource when the windres
command is not on PATH.
Generic image format conversion requires imagemagick. Imagemagick needs to be in PATH for the conversion functions to work. If imagemagick is not found, the build script will fail.
The only icon format available without imagemagick is .ico
.
This crate only works on windows as resource scripts are a windows thing. Linking for web will fail (I have not yet checked linux or macos). Use buildcfg for checking the target being windows. Buildcfg is required for cross architecture compilation.
.rc
compiler