Replies: 1 comment 2 replies
-
I'm not sure what you're proposing is a general use case.
Then why not just move |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a rust library (rlib) that provides an abstract pyo3 interface, and other extension modules/crates that implement the interface by depending on the the rust library. The rust library contains the python API, and therefore also contains the .pyi type hints. The extension modules just provide implementations, and don't expose any new python interfaces.
I'm wondering if it's possible to have maturin automatically collect
.pyi
files from rlib dependencies?At the moment I'm copying the rlib
.pyi
file to each extension module before invoking maturin, which works OK, but does mean it's an extra step in the build process.Beta Was this translation helpful? Give feedback.
All reactions