3 releases
0.1.2 | Nov 17, 2023 |
---|---|
0.1.1 | Nov 16, 2023 |
0.1.0 | Nov 16, 2023 |
#75 in #inline
6KB
68 lines
stable-inline-python
Stable Ver. of Inline Rust
QuickStart
use stable_inline_python::PyContext;
fn main() {
let c = PyContext::new();
c.run("x = 2"); //outputs 2
let x = c.get::<String>("x");
println!("{}",x.unwrap());
c.run("del x");
let x = c.get::<String>("x");
println!("{}",x.unwrap()); //error!
}
Dependencies
~3.5–8MB
~72K SLoC