1 unstable release

0.1.0 Mar 4, 2023

#24 in #quickjs

Download history 5/week @ 2024-02-19 24/week @ 2024-02-26 4/week @ 2024-03-04 6/week @ 2024-03-11 3/week @ 2024-03-18 14/week @ 2024-03-25 36/week @ 2024-04-01

60 downloads per month
Used in 3 crates (via quickjspp)

MIT license

3MB
86K SLoC

C 79K SLoC // 0.0% comments C++ 4K SLoC // 0.0% comments Rust 3K SLoC // 0.0% comments

libquickjs-sys

FFI Bindings for quickjspp, a fork of quickjs, which is a Javascript engine.

See the quickjspp 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:

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)
  • (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.

No runtime deps