pub fn write_cabi_metadata(
out_dir: &Path,
project_name: &str,
cabi_exports: &[(String, NativeCabiExport)],
host_fns: &HostFnRegistry,
include_init: bool,
cabi_rename: &HashMap<String, String>,
)Expand description
Write C ABI exports/imports JSON metadata.
cabi_exports is a list of (module_name, export) pairs.
cabi_rename maps disambiguated CABI names → bare function names.
When a name collides across modules, the JSON “name” field uses the
disambiguated form ({fn}_{module}) so that the bridge macro generates
unique Rust function definitions.