rustimport icon indicating copy to clipboard operation
rustimport copied to clipboard

Possibility to create a `.pyi` file with the debug and release binaries

Open sansyrox opened this issue 2 years ago • 1 comments

Hey 👋

Great package and great work by the team. We are using this package in the latest version of Robyn (https://github.com/sparckles/robyn) 😄

Would it be possible to generate a .pyi with the binaries at some point? It will help a lot with the typing systems

sansyrox avatar Jan 09 '24 21:01 sansyrox

Hi,

I think generating .pyi files is a relatively complex task, which is kind of out of scope for rustimport – this would probably rather be part of pyo3 or a standalone project one could integrate.

There's some progress on implementing this in pyo3 though – see e.g. https://github.com/PyO3/pyo3/issues/2454.

Should this be integrated into upstream pyo3 – or if there is some external project I could integrate (didn't find one), I'd be happy to make the necessary changes to allow this being done from rustimport users :)

mityax avatar Jan 11 '24 15:01 mityax