Skip to content

parthasdey2304/rust-coderunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :
git clone https://github.com/parthasdey2304/rust-coderunner.git
  • Open the repo :
cd rust-coderunner
  • Directory structure :
$ tree
.
├── LICENSE
├── README.md
├── remove.sh
├── rrun
└── setup.sh

1 directory, 5 files
  • Make the setup.sh script executable :
chmod +x setup.sh
  • Run the setup.sh script :
./setup.sh

The Rust CodeRunner is successfully installed on your system!

Usage

  • First write the code with .rs extension, suppose file_name.rs :
// cat file_name.rs
fn main() {
  println!("Hello world!");
}
  • Use the command rrun followed by the filename :
rrun file_name.rs
  • See the output :
┌──(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!!!!

About

This is a code runner for linux terminal to run rust codes.....

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages