Skip to content

🦴A super light, toy Javascript runtime based on deno🦴

License

Notifications You must be signed in to change notification settings

imagineeeinc/bone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bone

🦴A super light, toy Javascript runtime🦴

Bone is a bare "bones" javascript runtime based on the deno runtime.

Deno being bassed on rust and its runtime being avalible to anyone made me wonder if I can make a "javascript runtime" with the heavy lifting done by some one else, the someone else being the amazing deno team.

Usage

Make sure to have Rust installed. You can follow my super simplified guide to setup on windows.

Then clone this repo with

git clone https://github.com/imagineeeinc/bone.git

run:

# for testing out
cargo run
# with the example js file
cargo run -- -i examples/hello.js
# examples avalible in the examples folder

# Making a production build
cargo build --release

Educational

This project is mainly an experiment and for educational purposes, on how to use js in your rust project easily. The main branch is using the Deno runtime module that means it has browser api like console log and fetch and it also means the runtime is using the std if you are planning on using deno in a no std enviornment, checkout the deno_core branch

License

This project is under MIT License