I have created the start of a Rust wrapper for cr.h:
https://github.com/Neopallium/cr-rs
Right now I am planning on a host-side and guest-side sys crates, since two different libraries need to be crated. Might be able to use features to keep it as one library that can be compiled as either side as needed.
Right now a basic host example compiles and can load the libbasic_guest.so from cr.h samples.
The only problem I see right now is that cr.h doesn't provide access to the library handle. The cr-sys crate could patch in a function to return the library handle.
I have created the start of a Rust wrapper for
cr.h:https://github.com/Neopallium/cr-rs
Right now I am planning on a host-side and guest-side sys crates, since two different libraries need to be crated. Might be able to use features to keep it as one library that can be compiled as either side as needed.
Right now a basic host example compiles and can load the libbasic_guest.so from
cr.hsamples.The only problem I see right now is that
cr.hdoesn't provide access to the library handle. The cr-sys crate could patch in a function to return the library handle.