Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is there something similar to Cython for rust that can be integrated with python to do most of heavy lifting while still being able to code in python framework


There's an entire ecosystem built up to support this. PyO3 [1] connects Rust to Python, Maturin [2] is a build tool to package Python wheels easily, with a host of popular examples using Maturn + PyO3 [3]. There's even extensions to bind easily to numpy and asyncio [4][5].

[1]: https://github.com/PyO3/pyo3

[2]: https://github.com/PyO3/maturin

[3]: https://github.com/PyO3/maturin#examples

[4]: https://github.com/PyO3/rust-numpy

[5]: https://github.com/awestlake87/pyo3-asyncio




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: