Qiskit / rustworkx

A high performance Python graph library implemented in Rust.
https://www.rustworkx.org
Apache License 2.0
1.03k stars 145 forks source link

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

Open IvanIsCoding opened 1 month ago

IvanIsCoding commented 1 month ago

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.

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 10675942525

Details


Totals Coverage Status
Change from base Build 10672676557: -0.03%
Covered Lines: 17897
Relevant Lines: 18685

💛 - Coveralls