Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgrunwald/rust-cpython
/ main
Function
main
examples/hello.rs:3–6 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
use cpython::{PyDict, PyResult, Python};
2
3
fn main() {
4
let gil = Python::acquire_gil();
5
hello(gil.python()).unwrap();
6
}
7
8
fn hello(py: Python) -> PyResult<()> {
9
let sys = py.import(
"sys"
)?;
Callers
nothing calls this directly
Calls
2
hello
Function · 0.85
python
Method · 0.80
Tested by
no test coverage detected