Expand description
A simple utility for embedding resources in Windows executables.
§Example
#[cfg(windows)]
fn main() {
embedinator::ResourceBuilder::from_env()
.add_manifest(std::fs::read_to_string("assets/app.manifest").unwrap())
.add_icon(32512, Icon::from_png_bytes(std::fs::read("app.png").unwrap()))
.finish();
println!("cargo:rerun-if-changed=app.manifest");
println!("cargo:rerun-if-changed=app.png");
}
§Limitations
Currently always sets the language to 0x0409 (English, US) as I don’t fully understand how multilingual resource files are supposed to look like.
Structs§
- Icon
- An Icon resource.
- Resource
Builder - A builder for compiling a new resource file in a cargo build script and setting the correct linker flags.
- Version
- A version number.