Function interoptopus::merge_libraries[][src]

pub fn merge_libraries(libraries: &[Library]) -> Library
Expand description

Create a single Library from a number of individual libraries.

This function can be useful when your FFI crate exports different sets of symbols (e.g., core and extension functions) and you want to create different bindings based on some compile target or configuration

Example

use interoptopus::merge_libraries;

let libraries = [
    my_crate::inventory_core(),
    my_crate::inventory_ext()
];

merge_libraries(&libraries);