1 unstable release

0.1.0 Jul 6, 2022

#20 in #powered

MPL-2.0 license

100KB
514 lines

Fusca

A JavaScript engine written in Rust that runs in WebAssembly and targets WebAssembly through JIT compilation.

Installing

As cargo crate

cargo add fusca

As binary executable

Curl

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
brew install fusca

Usage

As crate

use fusca::{
	eval,
	heap::{ Heap, HeapValueDefault }
};

fn main() {
	let context = Heap::new(HeapValueDefault);
	eval(&context, "1+2");
}

As developer shell

$ cat test.js
console.log('Hello world!');

$ w8 test.js
Hello world!

Roadmap / TODO

No runtime deps