pub unsafe extern "C" fn weld_context_new(conf: weld_conf_t) -> weld_context_t {
    let conf = conf as *mut weld::WeldConf;
    let conf = &*conf;
    if let Ok(context) = weld::WeldContext::new(conf) {
        Box::into_raw(Box::new(context)) as _
    } else {
        // XXX Should this take an error too?
        ptr::null_mut()
    }
}
Creates a new context.

This function is a wrapper for `WeldContext::new`.
weld-capi/src/lib.rs