rustworkx icon indicating copy to clipboard operation
rustworkx copied to clipboard

Avoid requirining new `pyfunction`s to be declared in `lib.rs`

Open IvanIsCoding opened this issue 1 year ago • 1 comments

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.

IvanIsCoding avatar Jul 14 '24 21:07 IvanIsCoding

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 Coverage Status
Change from base Build 11860433299: -0.04%
Covered Lines: 17971
Relevant Lines: 18759

💛 - Coveralls

coveralls avatar Jul 14 '24 21:07 coveralls