Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upExpose `libwayland`-compatible C ABI #189
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vberger commentedJul 19, 2018
The goal would be to be able to inject our own symbols to replace the system libwayland.
Typically, this might be doable with something like that (presenting client-side only, but its symmetric for server-side):
libwayland-client.sodynamic library that exposes bothimpmodule)libwayland-client.sowayland-clientdynamically links to this previous crate using its rust ABI to expose the higher level API we currently knowThere are still uncertainties about how this may be done / if it may work:
libwayland-client.sois already loaded, and that it does not need to load the system one?wayland-client? There is now a dynamic library required for running them.A possible (?) alternative would be to find a way to embed the C ABI symbols into the final static executable produced by rustc and somehow convince the linker that it does not need to load the system lib and rather use them. No idea if that's actually possible though.