Sections
IntroductionGetting StartedWhat is Rust?InstallationYour First ProjectIDE SetupRust Language FundamentalsVariables and TypesFunctions and Control FlowOwnershipBorrowing and SlicesStructs and EnumsError HandlingCollectionsClosures and IteratorsTraits and GenericsModules and CratesProject Setup and ToolingCargo In DepthDependenciesTestingDaily WorkflowPyO3 and LogferryPyO3 OverviewExposing FunctionsExposing ClassesError Handling in PyO3Multithreading and the GILlogferry WalkthroughDistributionCargo CheatsheetReferencePython → Rust CheatsheetTroubleshooting
Getting Started
1 min read
This chapter takes you from zero to a working Rust development environment with your first project compiled and running.
Learning Objectives
By the end of this chapter you will be able to:
- Explain what Rust is and why it is particularly useful for Python developers writing performance-critical code
- Install Rust on your operating system and verify the installation
- Create, build, and run your first Rust project using Cargo
- Configure your IDE for a productive Rust editing experience
Articles
| Article | What you will learn |
|---|---|
| What is Rust? | Rust's design goals, memory safety without a GC, how it compares to Python |
| Installation | rustup, platform-specific steps, essential toolchain components |
| Your First Project | cargo new, cargo run, cargo test, project layout explained |
| IDE Setup | VS Code + rust-analyzer, RustRover, Neovim |
Prerequisites
No prior Rust experience is required. You should be comfortable writing Python code and working in a terminal.
Next
Continue to Chapter 2 — Rust Language Fundamentals once you have a working environment.