libquickjs-ng-sys

Crates.iolibquickjs-ng-sys
lib.rslibquickjs-ng-sys
version0.6.1
sourcesrc
created_at2024-06-19 18:00:10.555529
updated_at2024-07-07 16:59:12.217612
descriptionQuickJS-NG Javascript Engine FFI bindings
homepage
repositoryhttps://github.com/Icemic/quickjs-rusty
max_upload_size
id1277239
size3,564,623
Icemic (Icemic)

documentation

https://docs.rs/libquickjs-ng-sys

README

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.

Commit count: 299

cargo fmt