| Crates.io | libsql_bindgen |
| lib.rs | libsql_bindgen |
| version | 0.3.1 |
| created_at | 2022-11-01 15:27:01.74739+00 |
| updated_at | 2023-03-18 15:38:22.900283+00 |
| description | Rust library for writing WebAssembly-powered user-defined functions for libSQL |
| homepage | |
| repository | https://github.com/psarna/libsql_bindgen |
| max_upload_size | |
| id | 702864 |
| size | 5,063 |
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/