Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabrielalmir/just
Just is a simple Rust application that allows you to execute JavaScript code using the V8 engine. It supports both REPL mode and executing JavaScript files.
https://github.com/gabrielalmir/just
javascript-runtime rust v8
Last synced: about 2 months ago
JSON representation
Just is a simple Rust application that allows you to execute JavaScript code using the V8 engine. It supports both REPL mode and executing JavaScript files.
- Host: GitHub
- URL: https://github.com/gabrielalmir/just
- Owner: gabrielalmir
- License: mit
- Created: 2024-11-12T16:51:17.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-12T17:40:42.000Z (about 2 months ago)
- Last Synced: 2024-11-12T17:42:44.243Z (about 2 months ago)
- Topics: javascript-runtime, rust, v8
- Language: Rust
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Just
Just is a simple Rust application that allows you to execute JavaScript code using the V8 engine. It supports both REPL mode and executing JavaScript files.
![Hello World from Just](./assets/screenshot.png)
## Installation
To use Just, you need to have Rust installed on your system. If you don't have Rust installed, you can get it from [rust-lang.org](https://www.rust-lang.org/).
Clone the repository and navigate to the project directory:
```sh
git clone https://github.com/gabrielalmir/just.git
cd just
```Build the project using Cargo:
```sh
cargo build --release
```## Usage
### REPL Mode
To start the REPL mode, simply run the compiled binary without any arguments:
```sh
cargo run --release
```You can then enter JavaScript code, and it will be executed using the V8 engine. Type `exit` to quit the REPL.
### Execute JavaScript File
To execute a JavaScript file, provide the file path as an argument:
```sh
cargo run --release path/to/your/file.js
```## Dependencies
Just relies on the following dependencies:
- `rusty_v8`: Rust bindings for the V8 JavaScript engine.
- `tokio`: An asynchronous runtime for Rust.These dependencies are specified in the `Cargo.toml` file.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
## Acknowledgements
- [rusty_v8](https://github.com/denoland/rusty_v8) for providing the Rust bindings for V8.
- The Rust community for their continuous support and contributions.