Skip to content

Commit

Permalink
refactor: use bindgen as cli + allowlist
Browse files Browse the repository at this point in the history
this simplifies cross-compilation a lot by preventing conflicts with
libcs from other targets.
  • Loading branch information
levydsa committed Dec 31, 2024
1 parent cb3a8c2 commit 4953aa1
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 1,596 deletions.
11 changes: 11 additions & 0 deletions bindgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh

set -xe

bindgen libsql.h -o src/bindings.rs \
--with-derive-default \
--allowlist-type "libsql_.*_t" \
--allowlist-function "libsql_.*" \
--rustified-enum "libsql_type_t" \
--rustified-enum "libsql_cypher_t" \
--rustified-enum "libsql_tracing_level_t"
20 changes: 0 additions & 20 deletions build.rs

This file was deleted.

Loading

0 comments on commit 4953aa1

Please sign in to comment.