embed_resource

Function compile_for

Source
pub fn compile_for<T: AsRef<Path>, J: Display, I: IntoIterator<Item = J>, Ms: AsRef<OsStr>, Mi: IntoIterator<Item = Ms>>(
    resource_file: T,
    for_bins: I,
    macros: Mi,
)
Expand description

Likewise, but only for select binaries.

Only available since rustc 1.55.0, does nothing before.

ยงExamples

extern crate embed_resource;

fn main() {
embed_resource::compile_for("assets/poke-a-mango.rc", &["poke-a-mango", "poke-a-mango-installer"],
                            &["VERSION=\"0.5.0\""]);
    embed_resource::compile_for("assets/uninstaller.rc", &["unins001"], embed_resource::NONE);
}