-
Hi, I'm implementing a Python module using pyo3. I've grouped the features into sub-modules using the add_submodule API in pyo3. Initially, before a added a sub-module, I used the "pure rust" project layout with a single my_project.pyi file. I'm pretty sure I should switch to the "mixed" layout now, but so far I haven't been able to get it to work. Are there any examples I could follow? I would appreciate any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
See https://maturin.rs/project_layout.html#adding-python-type-information |
Beta Was this translation helpful? Give feedback.
For real world example, see https://github.com/pyca/cryptography/tree/main/src/cryptography/hazmat/bindings/_rust