git
must be installed on your system!!
- 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
- 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!
- Running the
setup.sh
script, installing the rrun script :
- Running the code with
rrun
:
- Removing the
rrun
script :
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.