Debian Codegraph @

test-crates/pyo3-no-extension-module/src/lib.rs

raw
1 use pyo3::ffi::{PyDict_New, PyObject};
2
3 #[no_mangle]
4 #[allow(non_snake_case)]
5 pub unsafe extern "C" fn PyInit_pyo3_pure() -> *mut PyObject {
6 PyDict_New() // Make sure an ffi function is used
7 }