A powerful approach to expanding Python's capabilities involves integrating with Rust's Extensions and utilizing Poetry for dependency management. By combining Rust's efficiency and security with Python's flexibility and user-friendliness, robust extensions can be created. Through this synergy, it becomes feasible to develop Rust modules that can be called and utilized seamlessly within Python code, harnessing Rust's execution speed in critical operations. Poetry, functioning as a dependency manager, ensures a seamless handling of the required libraries for this integration, streamlining the development and distribution process of the resulting extensions.
- execute poetry build inside the root dir;
- install the dist/*.whl file;
- import the rust lib:
from fiborusty import fibo
- call the fibo(4)