PyO3
https://github.com/PyO3/pyo3
pip install maturin
maturin init
src/lib.rs
maturin develop
# lots of progress output as maturin runs the compilation...
$ python
>>> import string_sum
>>> string_sum.sum_as_string(5, 20)
'25'
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
https://github.com/PyO3/pyo3
pip install maturin
maturin init
src/lib.rs
maturin develop
# lots of progress output as maturin runs the compilation...
$ python
>>> import string_sum
>>> string_sum.sum_as_string(5, 20)
'25'