This is the repository for the LinkedIn Learning course "Debugging Rust Code with AI". The full course is available from LinkedIn Learning.
This course equips intermediate-level Rust developers with the skills to use AI-powered tools for effective debugging, ensuring a smoother and faster workflow. Join instructor Ashish Sharda as he explores the integration of AI tools like GitHub Copilot and Rust Analyzer to streamline the debugging process and tackle common Rust challenges, including memory safety, async runtime, and type error handling. Through hands-on exercises, you’ll learn to set up and configure these tools in a Rust environment, using AI insights to diagnose and resolve complex issues with confidence. By combining traditional and AI-driven approaches, this course provides a comprehensive framework for enhancing Rust code quality, boosting productivity, and elevating debugging efficiency.
-
Install Rustup (The Rust toolchain installer):
- Windows: Download and run rustup-init.exe
- macOS/Linux: Run the following in your terminal:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Verify Installation:
rustc --version cargo --version
-
Update Rust (when needed):
rustup update
-
Install Visual Studio Code:
- Download from code.visualstudio.com
-
Install VS Code Extensions:
- rust-analyzer: Advanced Rust language support
- CodeLLDB: Debugger support for Rust
- Dependi: Helps manage Rust dependencies
- Even Better TOML: TOML file support for Cargo.toml files
-
Configure VS Code:
- Enable format on save
- Set rust-analyzer as the default formatter for Rust files
This repository contains all the exercise files needed to follow along with the course. The files are organized by chapter and topic, making it easy to find the code related to specific videos.
To use these exercise files, you must have the following installed:
- Rust (latest stable version)
- Visual Studio Code
- Relevant VS Code extensions for Rust development
- Understanding of basic Rust syntax and concepts
This repository has branches for each of the videos in the course. You can use the branch pop-up menu in GitHub to switch to a specific branch and take a look at the course at that stage, or you can add /tree/BRANCH_NAME
to the URL to go to the branch you want to access.
When switching from one exercise files branch to the next after making changes to the files, you may get a message like this:
error: Your local changes to the following files would be overwritten by checkout: [files]
Please commit your changes or stash them before you switch branches.
Aborting
To resolve this issue:
Add changes to git using this command: git add .
Commit changes using this command: git commit -m "some message"
- Clone this repository into your local machine using the terminal (Mac), CMD (Windows), or a GUI tool like SourceTree.
- Install all the required software and tools mentioned in the Requirements section.
- Navigate to the appropriate branch for the video you're watching.
- Follow along with the course and experiment with the code.
If you'd like to contribute to this repository, please see the CONTRIBUTING.md file for guidelines.
Ashish Sharda
Author | Entrepreneur | Architect | Technology Leader
Check out my other courses on LinkedIn Learning.