https://github.com/imagineeeinc/bone
🦴A super light, toy Javascript runtime based on deno🦴
https://github.com/imagineeeinc/bone
deno javascript javascript-runtime js-runtime rust
Last synced: 2 months ago
JSON representation
🦴A super light, toy Javascript runtime based on deno🦴
- Host: GitHub
- URL: https://github.com/imagineeeinc/bone
- Owner: imagineeeinc
- License: mit
- Created: 2022-07-19T18:51:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-17T11:42:46.000Z (almost 3 years ago)
- Last Synced: 2025-01-17T22:40:56.943Z (4 months ago)
- Topics: deno, javascript, javascript-runtime, js-runtime, rust
- Language: Rust
- Homepage:
- Size: 522 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
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](https://github.com/denoland/).
Usage
Make sure to have [Rust installed](https://www.rust-lang.org/tools/install). You can follow my [super simplified guide](https://github.com/imagineeeinc/repo-o-knowledge/tree/main/rust#instalation-on-windows) to setup on windows.
Then clone this repo with
```bash
git clone https://github.com/imagineeeinc/bone.git
```run:
```bash
# 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](https://github.com/imagineeeinc/bone/tree/deno_core)
License
This project is under [MIT License](https://github.com/imagineeeinc/bone/blob/main/LICENSE)