mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
24 lines
911 B
Bash
24 lines
911 B
Bash
#!/usr/bin/env sh
|
|
|
|
set -xe
|
|
|
|
bindgen turso_sync.h -o src/bindings.rs \
|
|
--with-derive-default \
|
|
--allowlist-type "turso_sync_.*_t" \
|
|
--allowlist-function "turso_sync_.*" \
|
|
--blocklist-type "turso_status_code_t" \
|
|
--blocklist-type "turso_database_config_t" \
|
|
--blocklist-type "turso_database" \
|
|
--blocklist-type "turso_database_t" \
|
|
--blocklist-type "turso_database" \
|
|
--blocklist-type "turso_database_t" \
|
|
--blocklist-type "turso_connection" \
|
|
--blocklist-type "turso_connection_t" \
|
|
--blocklist-type "turso_status_t" \
|
|
--blocklist-type "turso_slice_ref_t" \
|
|
--rustified-enum "turso_sync_io_request_type_t" \
|
|
--rustified-enum "turso_sync_database_io_request_type_t" \
|
|
--rustified-enum "turso_sync_operation_result_type_t" \
|
|
--raw-line "use turso_sdk_kit::capi::c::*;" \
|
|
--default-non-copy-union-style manually_drop \
|
|
-- -I../../sdk-kit/
|