Skip to content

Conversation

@q3k
Copy link

@q3k q3k commented Sep 29, 2025

This adds external_library_universal!, a new entrypoint to the crate. It's very similar to external_library! but the generated bindings are universal for both dlopen and non-dlopen builds.

This fixes #12. Of course, this does not address the concern about structure size - but this is why this feature is optional.

This adds `external_library_universal!`, a new entrypoint to the crate.
It's very similar to `external_library!` but the generated bindings are
universal for both dlopen and non-dlopen builds.

This fixes elinorbgr#12. Of course, this does not address the concern about
structure size - but this is why this feature is optional.
q3k added a commit to q3k/xkbcommon-dl that referenced this pull request Sep 29, 2025
This is part of an effort to allow winit to link against X11 at compile
time (eg. statically) and not just at runtime via dlopen().

This depends on elinorbgr/dlib#25 .
q3k added a commit to q3k/winit that referenced this pull request Sep 29, 2025
This depends on three upstream patches:

- dlib (via xkbcommon-dl): elinorbgr/dlib#25
- xkbcommon-dl: to be filed after above is merged, branch: https://github.com/q3k/xkbcommon-dl/tree/q3k/compile-time-linking
- x11-rs: AltF02/x11-rs#181
@q3k q3k force-pushed the q3k/universal-load branch from ac5a482 to 9aaf761 Compare October 1, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the need for the “Remaining generic in your crate” paragraph in the README?

1 participant