fusca

Crates.iofusca
lib.rsfusca
version0.1.0
sourcesrc
created_at2022-07-06 15:56:17.375292
updated_at2022-07-06 15:56:17.375292
descriptionJavaScript Engine powered by Rust
homepage
repository
max_upload_size
id620570
size266,496
Raphael Amorim (raphamorim)

documentation

README

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

Commit count: 0

cargo fmt