Rust Compile and Run

Rust Compile Run Logo

Rust Compile and Run is a command-line utility that simplifies the process of compiling, running, and cleaning up Rust executables. It offers various features like watching for file changes, running in a temporary directory, and optional notifications.

Installation

To install the package, run:

bash cargo install rust_compile_run

This will add two binaries. - rustcompilerun - rustcr

Usage

Basic usage:

bash rust_compile_run -f your_file.rs rustcr -nwf your_file.rs

Compile and run in a temporary directory:

bash rust_compile_run -tf your_file.rs rustcr -tf your_file.rs

Watch for file changes and recompile:

bash rust_compile_run -wf your_file.rs rustcr -wf your_file.rs

Enable notifications:

bash rust_compile_run -nf your_file.rs rustcr -nf your_file.rs

Features

License

This project is licensed under the MIT License - see the LICENSE file for details.