Crates.io | fusca |
lib.rs | fusca |
version | 0.1.0 |
source | src |
created_at | 2022-07-06 15:56:17.375292 |
updated_at | 2022-07-06 15:56:17.375292 |
description | JavaScript Engine powered by Rust |
homepage | |
repository | |
max_upload_size | |
id | 620570 |
size | 266,496 |
A JavaScript engine written in Rust that runs in WebAssembly and targets WebAssembly through JIT compilation.
cargo add fusca
If you’re running macOS, Linux, or another Unix-like OS. To download and install fusca, run the following in your terminal:
sh curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/raphamorim/fusca/main/scripts/install.sh | sh
brew install fusca
use fusca::{
eval,
heap::{ Heap, HeapValueDefault }
};
fn main() {
let context = Heap::new(HeapValueDefault);
eval(&context, "1+2");
}
$ cat test.js
console.log('Hello world!');
$ w8 test.js
Hello world!