An open API service indexing awesome lists of open source software.

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.....

Awesome Lists containing this project

README

          

rust icon

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 :
image

+ Running the code with `rrun` :
image

+ Removing the `rrun` script :
image

# 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!!!!