#wasm-build #quick-js #bindings #wasi #sdk #io #javy

deprecated sys quickjs-wasm-sys

Rust bindings for Wasm build of QuickJS

9 releases (5 stable)

new 1.2.1 May 7, 2024
1.2.0 Jan 31, 2024
1.1.1 Sep 11, 2023
1.1.0 Jul 31, 2023
0.1.0 Mar 4, 2022

#1325 in WebAssembly

Download history 58/week @ 2024-01-15 13/week @ 2024-01-22 22/week @ 2024-01-29 9/week @ 2024-02-05 28/week @ 2024-02-12 5/week @ 2024-02-19 125/week @ 2024-02-26 35/week @ 2024-03-04 28/week @ 2024-03-11 23/week @ 2024-03-18 21/week @ 2024-03-25 74/week @ 2024-04-01 23/week @ 2024-04-08 23/week @ 2024-04-15 28/week @ 2024-04-22 22/week @ 2024-04-29

102 downloads per month
Used in 3 crates (via quickjs-wasm-rs)

Apache-2.0 WITH LLVM-exception

3MB
87K SLoC

C 79K SLoC // 0.0% comments JavaScript 7.5K SLoC // 0.0% comments Bitbake 500 SLoC // 0.1% comments Rust 239 SLoC // 0.1% comments Shell 110 SLoC // 0.1% comments

Contains (Mach-o exe, 1MB) quickjs/run-test262, (Mach-o exe, 1MB) quickjs/examples/test_fib, (Mach-o exe, 395KB) quickjs/examples/hello, (Mach-o exe, 470KB) quickjs/examples/hello_module

This crate is deprecated.

crates.io

The motivation for this change is explained in detail in https://github.com/bytecodealliance/javy/pull/618

We recommend using rquickjs as the high-level bindings for QuickJS.

quickjs-wasm-sys: Wasm QuickJS bindings for Rust

High-level bindings and serializers for a Wasm build of QuickJS.

FFI bindings for a Wasm build of the QuickJS Javascript engine.

Publishing to crates.io

To publish this crate to crates.io, run ./publish.sh.

Using a custom WASI SDK

This crate can be compiled using a custom WASI SDK. When building this crate, set the QUICKJS_WASM_SYS_WASI_SDK_PATH environment variable to the absolute path where you installed the SDK. You can also use a particular version of the WASI SDK by setting the QUICKJS_WASM_SYS_WASI_SDK_MAJOR_VERSION and QUICKJS_WASM_SYS_WASI_SDK_MINOR_VERSION environment variables to the appropriate versions.

No runtime deps