Are there any public repos that use rust with PyO3...
# general
g
Are there any public repos that use rust with PyO3 to build a python extension module? I know pants itself does this but it's hard to separate what's needed to bootstrap vs. what would be part of a normal project. (I see
src/rust/engine/BUILD
builds the module but I can't find how it gets depended on, except for
bootstrap_code.sh
)
f
Maybe browse https://crates.io/crates/pyo3/reverse_dependencies? That will get you started at least with public crates making use of
pyo3.
Also have you asked an LLM? I gave Claude the following prompt and it listed out lots of candidate projects:
Please identify Rust software projects which (1) make use of the
pyo3
crate (https://crates.io/crates/pyo3), (2) which build Python extension modules, and (3) have publicly available source code.
g
I'm specifically looking for ones that use pants though, most (all?) crates above aren't using pants
(I have an existing codebase using pyo3 + maturin that I was looking to migrate)
I have since tried this github search for (
BUILD
files with "pyo3") but they're all for bazel (except for copies of the pants repo itself)
f
I’m not aware of any such projects besides Pants and Pants itself builds Rust code separately using Cargo.