https://github.com/parthasdey2304/rust-coderunner
This is a code runner for linux terminal to run rust codes.....
https://github.com/parthasdey2304/rust-coderunner
Last synced: about 1 year ago
JSON representation
This is a code runner for linux terminal to run rust codes.....
- Host: GitHub
- URL: https://github.com/parthasdey2304/rust-coderunner
- Owner: parthasdey2304
- License: mit
- Created: 2023-11-22T10:57:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-03T14:00:26.000Z (over 2 years ago)
- Last Synced: 2025-03-11T14:55:18.461Z (about 1 year ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Rust CodeRunner
I made this Script for myself to get my rust scripts compiled and executed in a single line on Linux
# Pre-Requisites
+ `git` must be installed on your system!!
# Installation
+ Clone the repo `rust-coderunner` :
``` sh
git clone https://github.com/parthasdey2304/rust-coderunner.git
```
+ Open the repo :
``` sh
cd rust-coderunner
```
+ Directory structure :
``` sh
$ tree
.
├── LICENSE
├── README.md
├── remove.sh
├── rrun
└── setup.sh
1 directory, 5 files
```
+ Make the `setup.sh` script executable :
``` sh
chmod +x setup.sh
```
+ Run the `setup.sh` script :
``` sh
./setup.sh
```
### The Rust CodeRunner is successfully installed on your system!
# Usage
+ First write the code with .rs extension, suppose `file_name.rs` :
``` rs
// cat file_name.rs
fn main() {
println!("Hello world!");
}
```
+ Use the command `rrun` followed by the filename :
``` sh
rrun file_name.rs
```
+ See the output :
``` sh
┌──(partha㉿xiaomi)-[/mnt/d/programming/learning/rust]
└─$ rrun file_name.rs
Compilation successful. Running the program:
Hello world!
```
# Screenshots
+ Running the `setup.sh` script, installing the rrun script :

+ Running the code with `rrun` :

+ Removing the `rrun` script :

# Contributing
We welcome contributions from the community! We welcome your contributions to improve the project. If you'd like to contribute to rust-coderunner, please read the following guidelines on how to contribute:
+ Fork the repository and create a new branch for your changes.
+ Make your changes to the code.
+ Test your changes thoroughly.
+ Commit your changes with a clear and descriptive message.
+ Push your changes to your fork.
+ Create a pull request and wait for me to verify and then merge it to the main branch.
# THANK YOU COMMUNITY!!!!