quick-js-datepatch/libquickjs-sys/README.md
2021-06-08 21:24:47 +00:00

34 lines
797 B
Markdown

# libquickjs-sys
FFI Bindings for [quickjs](https://bellard.org/quickjs/), a Javascript engine.
See the [quick](https://crates.io/crates/quickjs) crate for a high-level
wrapper.
*Version 0.9.0*
**Embedded VERSION: 2021-03-27**
## Embedded vs system
By default, an embedded version of quickjs is used.
If you want to use a version installed on your system, use:
```toml
libquickjs-sys = { version = "...", default-features = false, features = ["system"] }
```
## 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 updat the bindings, follow these steps:
* (Install [just](https://github.com/casey/just))
* Update the download URL in ./justfile
* run `just update-quickjs`