Debian Codegraph @

test-crates/sdist_with_target_path_dep/src/lib.rs

raw
1 use pyo3::prelude::*;
2
3 #[pyfunction]
4 fn add(x: usize, y: usize) -> usize {
5 let sum = some_path_dep::add(x, y);
6 debug_assert!(some_path_dep::is_sum(x, y, sum));
7 sum
8 }
9
10 #[pymodule]
11 fn sdist_with_target_path_dep(m: &Bound<'_, PyModule>) -> PyResult<()> {
12 m.add_wrapped(wrap_pyfunction!(add))?;
13 Ok(())
14 }