How to extend Numba so it supports pybind11-wrapped C++ struct?

I would love this feature too. I am linking c-source code to pytorch and jax.

I am trying to wrap the pybind11 functions I use for pytorch with the jax header in a python script. To do this, I use numba’s cfunc to wrap my original pybind11 interface. An example is shown here. I am unfamiliar with this low-level detail but I hope this post demonstrates another use case for this feature.

Potentially using FFI to read the pybind11 so file will work soon if this PR does what I think it does.