#quickjs #javascript #javascript-engine #bindings

sys lento-libquickjs-sys

QuickJS Javascript Engine FFI bindings

1 unstable release

0.9.0 Jan 18, 2025

#2158 in Web programming

Download history 116/week @ 2025-01-16

116 downloads per month

MIT license

3MB
88K SLoC

C 75K SLoC // 0.0% comments JavaScript 8K SLoC // 0.0% comments Rust 4K SLoC // 0.0% comments Bitbake 501 SLoC // 0.1% comments Shell 108 SLoC // 0.1% comments Batch 2 SLoC

libquickjs-sys

FFI Bindings for quickjs, a Javascript engine.

See the quick 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)
  • Update the download URL in ./justfile
  • run just update-quickjs

lib.rs:

FFI Bindings for quickjs, a Javascript engine. See the quickjs crate for a high-level wrapper.

No runtime deps