compile_for

Function compile_for 

Source
pub fn compile_for<T: AsRef<Path>, J: Display, I: IntoIterator<Item = J>, Ms: AsRef<OsStr>, Mi: IntoIterator<Item = Ms>, Is: AsRef<OsStr>, Ii: IntoIterator<Item = Is>, P: Into<ParameterBundle<Ms, Mi, Is, Ii>>>(
    resource_file: T,
    for_bins: I,
    parameters: P,
) -> CompilationResult
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);
}