3 ms·
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
by wanderingmind 4y ago
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
- kylebarron 4y agoThere'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 https://github.com/PyO3/pyo3 [2]: https://github.com/PyO3/maturin https://github.com/PyO3/maturin [3]: https://github.com/PyO3/maturin#examples https://github.com/PyO3/maturin#examples [4]: https://github.com/PyO3/rust-numpy https://github.com/PyO3/rust-numpy [5]: https://github.com/awestlake87/pyo3-asyncio https://github.com/awestlake87/pyo3-asyncio