Function interoptopus::merge_inventories
source · pub fn merge_inventories(inventories: &[Inventory]) -> Inventory
Expand description
Create a single Inventory
from a number of individual inventories.
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_inventories;
let inventories = [
my_crate::inventory_core(),
my_crate::inventory_ext()
];
merge_inventories(&inventories);