Installation
Before you install pRustIO, make sure your computer meets a few basic requirements.
Prerequisites
- Rust and Cargo: You must have the Rust programming language and Cargo installed. (Usually installed via
rustup). - Python 3: pRustIO uses Python 3 to automatically download and run a local version of PlatformIO. Make sure Python 3 is available in your system path.
Installing pRustIO CLI
Because pRustIO is a standard Rust application, you can install it using Cargo from the project repository or directly from crates.io.
From repository:
# Clone the repository
git clone <repository_url>
cd prustio
# Install the tool globally using Cargo
cargo install --path .
From crates.io:
cargo install prustio
After installation, verify that the tool works by typing:
prustio --version
Installing pRustIO Visual Studio Code extension
If you don't like a comand-line interface, you can use pRustIO in the form of VS Code extension. Simply search pRustIO in the VS Code extensions marketplace and install it. The extension will download all missing dependencies or ask you to download it.
Automatic Setup
You do not need to manually install PlatformIO, AVRDUDE, or the avr-gcc compiler.
The first time you run a pRustIO command, the tool will automatically create a private Python virtual environment in your home directory (~/.prustio/) and download everything it needs.