Installation
Step-by-step guide to install the Rust language module and set up the necessary environment to start using it.
The Rust Language Module can be installed in two ways: manually downloading the release or using the Plugify package manager. This guide explains both methods and provides step-by-step instructions.
Method 1: Manual Installation
Download the Release
- Go to the Rust Language Module repository.
- Navigate to the Releases section.
- Download the archive for your platform:
plugify-module-rust-<version>-linux_64.tar.bz2,win_64orosx_arm64.
Extract the Package
- Create a new folder inside
addons/plugify/envs, for exampleenvs/rust. - Extract the archive into it. The manifest
plugify-module-rust.pmodulemust end up in the root of that folder.
Verify Installation
- Run
plg loadin the server console, or restart the server. - Run
plg modules: the module is listed asrust_module.
Method 2: Installation via Package Manager
Open the Server Console
The mamba command is built into the server console, so nothing has to be installed first. Package operations run while Plugify is unloaded: plg unload before them and plg load after. See Commands.
Install the Module
- Run the following commands in the server console:
Enter the commands one at a time, as described in Commands.
Verify Installation
- Run
plg modules: the module is listed asrust_module.
Folder Structure
After installation, the Rust Language Module should have the following folder structure:
Explanation
addons/plugify/envs/modules: The root folder for the Rust Language Module.bin: Contains the compiled module binaries (.dllfor Windows,.sofor Linux, etc.).plugify-module-rust.pmodule: The module manifest file that describes the module and its language.
Prerequisites
Before using the Rust Language Module, ensure you have the following installed:
Rust Toolchain
The Rust Language Module requires the Rust compiler and Cargo (Rust's package manager).
Install Rust
- Visit https://rustup.rs/
- Follow the instructions to install
rustup, the Rust toolchain installer - Verify installation:
Install Required Targets (Optional)
For cross-platform development, you may need to install additional targets:
Troubleshooting
Module Not Found
- Ensure the repository URL is correct and accessible.
- Verify that the module files are placed in the correct
envsfolder.
Installation Fails
- Check your internet connection.
- Ensure you have the latest version of Plugify installed.
Rust Toolchain Not Found
- Make sure Rust is properly installed and available in your system PATH.
- Try restarting your terminal or IDE after installing Rust.