Skip to main content

import

Macro import 

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

Declare imported functions from another mod. Generates public wrapper functions and __yog_bind_NAME entry points for the loader.

yog_api::import! {
    from "yog-pipes" {
        fn register_pipe(api: *const YogApi, json: *const c_char) -> bool;
    }
}
register_pipe(api, json_ptr); // auto-wired