Skip to content

This is a repository for the LinkedIn Learning course Debugging Rust Code with AI

License

Notifications You must be signed in to change notification settings

LinkedInLearning/debugging-rust-code-with-ai-6004177

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Debugging Rust Code with AI

This is the repository for the LinkedIn Learning course "Debugging Rust Code with AI". The full course is available from LinkedIn Learning.

lil-thumbnail-url

Course Description

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.

Setting Up Your Environment

Installing Rust

  1. 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
      
  2. Verify Installation:

    rustc --version
    cargo --version
    
  3. Update Rust (when needed):

    rustup update
    

IDE Setup

  1. Install Visual Studio Code:

  2. 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
  3. Configure VS Code:

    • Enable format on save
    • Set rust-analyzer as the default formatter for Rust files

Repository Structure

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.

Requirements

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

Using the Exercise Files

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.

Working with Exercise Files

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"

Getting Started

  1. Clone this repository into your local machine using the terminal (Mac), CMD (Windows), or a GUI tool like SourceTree.
  2. Install all the required software and tools mentioned in the Requirements section.
  3. Navigate to the appropriate branch for the video you're watching.
  4. Follow along with the course and experiment with the code.

Contributing

If you'd like to contribute to this repository, please see the CONTRIBUTING.md file for guidelines.

Instructor

Ashish Sharda

Author | Entrepreneur | Architect | Technology Leader

Check out my other courses on LinkedIn Learning.

About

This is a repository for the LinkedIn Learning course Debugging Rust Code with AI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages