Quickstart: Compile and link Windows resources
masterIn your build.rs script, use embed_resource::compile to process a resource file (.rc).
Use .manifest_optional().unwrap() if the manifest is cosmetic (e.g., an icon).
Use .manifest_required().unwrap() if the manifest is required for security or as an entry point.
Arguments that look like &["string"] or embed_resource::NONE must satisfy IntoIterator<AsRef<OsStr>> (e.g., &[&str], Option<PathBuf>, or Vec<OsString>).
extern crate embed_resource;
fn main() {
// Compile and link checksums.rc
embed_resource::compile("checksums.rc", embed_resource::NONE).manifest_optional().unwrap();
// Or, to select a resource file for each binary separately
embed_resource::compile_for("assets/poke-a-mango.rc", &["poke-a-mango", "poke-a-mango-installer"], &["VERSION=\"0.5.0\""]).manifest_required().unwrap();
embed_resource::compile_for("assets/uninstaller.rc", &["unins001"], embed_resource::NONE).manifest_required().unwrap();
}