2 releases
0.6.1 | Jul 7, 2024 |
---|---|
0.6.0 | Jun 19, 2024 |
#14 in #quickjs
21 downloads per month
Used in 6 crates
(via quickjs-rusty)
3MB
86K
SLoC
libquickjs-sys
FFI Bindings for quickjs-ng, a fork of quickjs, which is a Javascript engine.
See the quickjspp crate for a high-level wrapper.
Updating the embedded bindings
QuickJS sources and a pre-generated bindings.rs
are included in the repo.
They are used if the embedded
feature is enabled.
To update the bindings, follow these steps:
- (Install just)
- (Install bindgen-cli)
- Update the download URL in ./justfile
- run
just update-quickjs
Tips:
You may encounter problems in generating bindings.rs like "FP_SUBNORMAL
redefined here".
That's the solution,
but due that we execute bindgen
in cli, we have to resolve them by hand.
lib.rs
:
FFI Bindings for quickjspp, a Javascript engine. See the quickjspp crate for a high-level wrapper.