rust_compile_run

Crates.iorust_compile_run
lib.rsrust_compile_run
version1.0.2
sourcesrc
created_at2023-09-17 09:49:25.936837
updated_at2023-09-18 05:43:01.534941
descriptionA Rust CLI tool to compile, run, and optionally delete Rust executables with additional features like file watching and notifications.
homepagehttps://github.com/abhisekp/rust_compile_run
repositoryhttps://github.com/abhisekp/rust_compile_run
max_upload_size
id974992
size839,562
Abhisek Pattnaik (abhisekp)

documentation

https://docs.rs/rust_compile_run

README

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:

cargo install rust_compile_run

This will add two binaries.

  • rust_compile_run
  • rustcr

Usage

Basic usage:

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

Compile and run in a temporary directory:

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

Watch for file changes and recompile:

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

Enable notifications:

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 file for details.

Commit count: 6

cargo fmt