https://github.com/flier/rust-quickjs
Rust binding for the QuickJS Javascript Engine
https://github.com/flier/rust-quickjs
Last synced: about 1 year ago
JSON representation
Rust binding for the QuickJS Javascript Engine
- Host: GitHub
- URL: https://github.com/flier/rust-quickjs
- Owner: flier
- Created: 2019-07-16T11:36:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-03T03:41:15.000Z (almost 6 years ago)
- Last Synced: 2025-03-24T07:14:04.586Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 5.04 MB
- Stars: 8
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# qjs [](https://travis-ci.org/flier/rust-quickjs) [](https://ci.appveyor.com/project/flier/rust-quickjs) [](https://crates.io/crates/qjs) [](https://docs.rs/crate/qjs/) [](https://deps.rs/repo/github/flier/rust-quickjs)
`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:
```toml
[dependencies]
qjs = "0.1"
```
## Example
```rust
let v: Option = qjs::eval("1+2").unwrap();
assert_eq!(v, Some(3));
```