rustworkx
rustworkx copied to clipboard
Avoid requirining new `pyfunction`s to be declared in `lib.rs`
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.
Pull Request Test Coverage Report for Build 11862646320
Details
- 29 of 29 (100.0%) changed or added relevant lines in 1 file are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage decreased (-0.04%) to 95.799%
| Totals | |
|---|---|
| Change from base Build 11860433299: | -0.04% |
| Covered Lines: | 17971 |
| Relevant Lines: | 18759 |