Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify the X11 crate for no_std #116

Closed
wants to merge 1 commit into from
Closed

Conversation

notgull
Copy link
Contributor

@notgull notgull commented Jul 3, 2020

This resolves #93 by turning the x11 crate into a #![no_std] crate. x11 now has the std feature, enabled by default. At the crate root, I have created the crate-private os_primitives module. This module will reexport the std::os::raw module if the std feature is enabled, or reexport the C primitives within libc if it is disabled. In this PR, I also cleaned up the code somewhat and ran the rustfmt program.

Note that the x11-dl crate within this repository still uses std. I have modified it slightly to be compatible with the changes described above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no_std support?
2 participants