Getting Started
First and foremost, we need to install Rust and its package manager Cargo. The easiest way to do this is to use Rustup and follow the installation instructions.
Second, we need a code editor. If you want to make your life a living hell, you can use notepad. However, then we are missing some important stuff, like syntax highlighting, code formatting and much more. Here are some examples of code editors that can get the job done:
- VScode - Easy to use with lots of plugins to make your life easier.
- Helix - A text editor written in Rust!
- Vim - For hardcore programmers.
- NeoVim - For modern, hardcore programmers.
If using VScode, there are some handy plugins that will make your Rust programming journey more pleasant:
- Rust-analyzer - Trust me, you want this.
- Ruff - Code formatter and linter written in Rust.
- Even Better TOML - TOML file support.
- GitHub Copilot - Copilot is relatively good at Rust, but use with caution and be aware of hallucinations.
- Rainbow CSV - If working with CSV files, this plugin provides highlighting and interactive querying.