Welcome to "Rust-Python interoperability"!
In this course, you'll learn how to write Rust code that can be called from Python,
using pyo3
to create Python extension modules.
We assume you are familiar with the basics of both Rust and Python, but we don't assume any prior interoperability knowledge. We will provide explanations and references whenever we rely on advanced features in either language.
Note
This course has been written by Mainmatter.
It's one of the trainings in our portfolio of Rust workshops.
Check out our landing page if you're looking for Rust consulting or
training!
Open the companion book for this course in your browser. Follow the instructions there to get started.
- Rust (follow instructions here).
Ifrustup
is already installed on your system, runrustup update
(or another appropriate command depending on how you installed Rust on your system) to make sure you're running on the latest stable version. - (Optional but recommended) An IDE with Rust autocompletion support.
We recommend one of the following:
- RustRover;
- Visual Studio Code with
the
rust-analyzer
extension.
You can find the solutions to the exercises in
the solutions
branch of this repository.
Copyright © 2024- Mainmatter GmbH (https://mainmatter.com), released under the Creative Commons Attribution-NonCommercial 4.0 International license.