fusca 0.1.0

JavaScript Engine powered by Rust
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 266.02 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 983.44 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • raphamorim

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