Function embed_resource::compile_for
source · [−]pub fn compile_for<T: AsRef<Path>, J: Display, I: IntoIterator<Item = J>>(
resource_file: T,
for_bins: I
)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"]);
embed_resource::compile_for("assets/uninstaller.rc", &["unins001"]);
}