https://github.com/abhisekp/rust_compile_run
A Rust CLI tool to compile, run, and optionally delete Rust executables with additional features like file watching and notifications.
https://github.com/abhisekp/rust_compile_run
cli rust rust-runtime
Last synced: 8 months ago
JSON representation
A Rust CLI tool to compile, run, and optionally delete Rust executables with additional features like file watching and notifications.
- Host: GitHub
- URL: https://github.com/abhisekp/rust_compile_run
- Owner: abhisekp
- License: mit
- Created: 2023-09-17T09:47:25.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-18T05:41:46.000Z (almost 3 years ago)
- Last Synced: 2025-02-08T01:25:41.424Z (over 1 year ago)
- Topics: cli, rust, rust-runtime
- Language: Rust
- Homepage: https://crates.io/crates/rust_compile_run
- Size: 293 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rust Compile and Run
[](https://crates.io/crates/rust_compile_run)
`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.
- rust_compile_run
- 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
- **Compile and Run**: Compiles and runs a given Rust file.
- **Temporary Directory**: Optionally compiles and runs the Rust file in a temporary directory.
- **Watch Mode**: Watches for file changes and recompiles.
- **Notifications**: Optional notifications for compile and run status.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.