This is a very big refactor trying to tame lib.rs. Essentially we create a macro to avoid having to add m.add_wrapped(wrap_pyfunction!(your_new_function))?; every single time.
This will make it simpler for new contributors to add new methods, as now it is more likely they do not have to change lib.rs. If a new module is needed, the diff is similar but future contributions remain simple.
This is a very big refactor trying to tame
lib.rs
. Essentially we create a macro to avoid having to addm.add_wrapped(wrap_pyfunction!(your_new_function))?;
every single time.This will make it simpler for new contributors to add new methods, as now it is more likely they do not have to change
lib.rs
. If a new module is needed, the diff is similar but future contributions remain simple.