define_lib_reloader!() { /* proc-macro */ }
Expand description

This is the deprecated way of defining a type for calling into reloadable code.

Parses a construct like

unsafe MyLibLoader {
    lib_dir: "target/debug",
    lib_name: "lib",
    functions: {
        fn test<'a>(arg1: &'a str, arg2: u8) -> String;
    },
    source_files: ["path/to/lib.rs"],
    generate_bevy_systems: true
}