HadrienG2 / hwlocality

Rust bindings to Open MPI Portable Hardware Locality "hwloc" library, covering version 2.0 and above.
MIT License
21 stars 6 forks source link

Consider exposing component/plugin API #12

Open HadrienG2 opened 1 year ago

HadrienG2 commented 1 year ago

In principle, it is possible to extend hwloc by writing plugins for it. However, the compile-time constant used to evaluate ABI compatibility is a header define, which means I can't check it from Rust, so I'm not sure if exposing this from the Rust side is a good idea. It will probably require at least a little build.rs hackery to get back the define value into Rust.

In any case, here's the docs:

HadrienG2 commented 1 year ago

This API is going to take significant effort to bind, and I cannot think of a good use case for it at the moment. If you would have an interest in it, please speak up and describe your use case a bit here!