Python extensions in Rust

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • rust-cpython

    Rust <-> Python bindings

  • I've done it using cpython and pyo3 for performance in scientific computing. Compared to C++ I found using Rust got rid of most debugging across the FFI boundary. Eliminating memory errors and providing clear compilation errors when multithreading made more a difference for me than type safety, though it's not unrelated.

  • PyO3

    Rust bindings for the Python interpreter

  • I've done it using cpython and pyo3 for performance in scientific computing. Compared to C++ I found using Rust got rid of most debugging across the FFI boundary. Eliminating memory errors and providing clear compilation errors when multithreading made more a difference for me than type safety, though it's not unrelated.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • maturin

    Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages

  • Aside from the PyO3 and rust-cpython crates already mentioned, I'd suggest maturin as a way to integrate your build processes or possibly setuptools-rust.

  • setuptools-rust

    Setuptools plugin for Rust support

  • Aside from the PyO3 and rust-cpython crates already mentioned, I'd suggest maturin as a way to integrate your build processes or possibly setuptools-rust.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts