embed_resource

Function compile_for_tests

Source
pub fn compile_for_tests<T: AsRef<Path>, Ms: AsRef<OsStr>, Mi: IntoIterator<Item = Ms>>(
    resource_file: T,
    macros: Mi,
) -> CompilationResult
Expand description

Likewise, but only link the resource to test binaries (select types only. unclear which (and likely to change). you may prefer compile_for_everything()).

Only available since rustc 1.60.0, does nothing before.