Mathspp iconMathsppSep 25, 2026 ~1 min source read

Rodrigo Girão Serrão: TIL #146 – Using maturin through uv

You can use uv through maturin, but if your project also has a Rust binary, things may break. When you run a command like cargo run, cargo will see the dependency on PyO3 and it will then look for a Python installation.

Rodrigo Girão Serrão: TIL #146 – Using maturin through uv

Share this story

Send the public story page.

Useful takeaways from this story.

You can use uv through maturin, but if your project also has a Rust binary, things may break.

When you run a command like cargo run, cargo will see the dependency on PyO3 and it will then look for a Python installation.

If you have no global Python installations вЂ" because you do everything through uv вЂ"В or if your global installations aren't setup exactly like a vanilla, default installation, PyO3 might fail.

Building the complete brief

The page is ready to read now. The fuller skim-friendly version will appear here automatically.

The useful part

You can use uv through maturin, but if your project also has a Rust binary, things may break. When you run a command like cargo run, cargo will see the dependency on PyO3 and it will then look for a Python installation. If you have no global Python installations вЂ" because you do everything through uv вЂ"В or if your global installations aren't setup exactly like a vanilla, default installation, PyO3 might fail.

Keep reading in the app

Open the app view to save this story, compare related coverage, and continue from the same source.

Open in app