Pyo3 example for python in rust language, it will use python to do calculate and return the sum you give in main.rs.
Install Rust and check pyo3 user guide here.
- Ubuntu 20.04
- rustc 1.55.0
- cargo 1.55.0
- pyo3 0.14.5
cargo run
GitHub - PyO3/pyo3: Rust bindings for the Python interpreter