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
Project Setup and Tooling
1 min read
This chapter covers the practical side of Rust development: understanding Cargo.toml deeply, managing dependencies, writing tests, and establishing an efficient daily workflow.
Articles
| Article | Topics covered |
|---|---|
| Cargo In Depth | Cargo.toml anatomy, build profiles, essential commands |
| Dependencies | cargo add, crates.io, Python analogy table, Cargo.lock |
| Testing | #[test], integration tests, pytest for PyO3 modules |
| Daily Workflow | Inner loop, cargo watch, before-commit checklist |
Prerequisites
Chapter 2 — Rust Language Fundamentals or at least Your First Project.
Next
Chapter 4 — PyO3 and logferry — once you are comfortable with the toolchain, learn how to expose your Rust code to Python.