PyO2: A lightweight method to call Rust code from Python
Not affiliated at all with PyO3. Is that what you were looking for?
Usage
File: Cargo.toml
[]
= "mylib"
= "0.1.0"
= "2021"
[]
= ["cdylib"]
[]
= "0.1.0"
File: src/lib.rs
use ;
pub extern "C"
File: test.py
=
=
=
Output:
Hello, World!
Sum of numbers: 15
[6, 2, 3, 4, 5]