1 2 3 4 5 6 7 8
#[pyfunction] #[pyo3(name = "{{ host_symbol }}")] pub fn _alef_{{ unregister_fn }}(py: Python<'_>, name: String) -> PyResult<()> { py.detach(|| { {{ host_path }}(&name) .map_err(|e| pyo3::exceptions::PyRuntimeError::new_err(format!("{}", e))) }) }