15 releases
0.3.1 | Mar 18, 2023 |
---|---|
0.3.0 | Mar 17, 2023 |
0.2.6 | Nov 22, 2022 |
0.1.5 | Nov 2, 2022 |
#502 in WebAssembly
59 downloads per month
6KB
102 lines
Intro
This repository contains a helper library for coding WebAssembly-powered user-defined functions for libSQL.
Marking a native Rust function with #[libsql_bindgen]
macro
and compiling it to wasm32-unknown-unknown
target
is enough to produce a user-defined function definition
callable directly from libSQL.
Example: https://github.com/psarna/libsql_bindgen/blob/master/examples/encrypt_decrypt/src/lib.rs
Try it yourself:
cd examples/encrypt_decrypt
./get_sql.sh encrypt
./get_sql.sh decrypt
This repository is the foundation of libSQL generate and http://bindgen.libsql.org/
Dependencies
~1.5MB
~35K SLoC