Open IvanIsCoding opened 1 month ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
build.rs | 76 | 77 | 98.7% | ||
<!-- | Total: | 83 | 84 | 98.81% | --> |
Totals | |
---|---|
Change from base Build 10672676557: | -0.02% |
Covered Lines: | 17978 |
Relevant Lines: | 18767 |
Follow up of #1252
Real diff: https://github.com/IvanIsCoding/rustworkx/compare/smarter-boilerplate...IvanIsCoding:rustworkx:build-rs
This PR leverages
build.rs
to reduce even more the boilerplate required to add a newrustworkx
function. All needed now is to addmod your_module;
to the main file after addingexport_rustworkx_functions!
to the new module.I don't think we can generate multiple
mod a; mod b;
statments in Rust due to the limitations ofinclude!
. Still, I think this is worth keeping to make contributing more straightforward with some "magic".