Registry / other / quick-js

quick-js

JSON →
library0.4.1rscratesunverified

A Rust wrapper around the QuickJS JavaScript engine for embedding JS execution.

# Cargo.toml [dependencies] quick-js = "0.4.1"
INSTALL
IMPORT
SIG · QUICK-JS
Q
quick-js
otherrustv0.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Context
use quick_js::Context;

Evaluate JavaScript expression using QuickJS

use quick_js::Context; fn main() { let ctx = Context::new().unwrap(); let result = ctx.eval("1 + 2").unwrap(); println!("{:?}", result); }
Debug
Known issues
gotchaRequires a C compiler and libquickjs to be installed
fix
Install libquickjs-dev or build from source
affects: >=0.1.0
Upgrade
Version history
0.4.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
quick-js — cargo add quick-js · libregistry