rust_autoloader

An autoloader that compiles and runs rust files in your current directory


License
MIT
Install
pip install rust_autoloader==0.1

Documentation

Rust Autoloader

Downloads Supported Python versions

This script detects any changes made to the rust files (.rs) in current working directory and serves as an autoloader for your development.

Use this when you are learning rust/testing/editing rust files and you're tired of doing rustc test.rs and ./test over and over again.

Installation

$ pip install rust-autoloader

Usage

from rust_autoloder import run
run("path-to-working-directory")

You can also take the autoloader.py script and keep it running in the working directory using python autoloader.py while working.

NOTE

  • This script is not meant to be any kind of substitute for cargo build. Use this only when you're toying on some .rs files and don't use it in any serious project.

* Doesn't play well with compiler warnings (yet). (One has to execute manually if warnings are generated).
* Not possible to pass input to your rust program (yet).