Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 832 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 832 Bytes

qjs travis Build status crate docs dependency status

qjs is an experimental Rust binding for the QuickJS Javascript Engine

Usage

To use qjs in your project, add the following to your Cargo.toml:

[dependencies]
qjs = "0.1"

Example

let v: Option<i32> = qjs::eval("1+2").unwrap();

assert_eq!(v, Some(3));