pub unsafe fn init_extension_with_policy<F>(
info: duckdb_extension_info,
access: *const duckdb_extension_access,
api_version: &str,
policy: AbiPolicy,
register: F,
) -> boolExpand description
init_extension with an explicit AbiPolicy.
Use this to opt out of the C API layout check — for example when the
extension’s metadata already makes DuckDB refuse a mismatched release:
C_STRUCT with C API v1.5.6 (DUCKDB_API_VERSION_1_5_6),
built against the v1.5.6 bindings, which DuckDB before v1.5.6 refuses, or
C_STRUCT_UNSTABLE on DuckDB 1.x, which pins the binary to one release
(DuckDB 2.0 cannot load a C_STRUCT_UNSTABLE binary built by quack-rs).
§Safety
Same invariants as init_extension.