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

Remove most linux-raw-sys types from the public API #1277

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sunfishcode
Copy link
Member

Add locally defined replacements to avoid depending on bindgen's __IncompleteArrayField and __BindgenUnionField in linux-raw-sys, use crate::ffi instead of crate::backend::c where applicable, remove WaitIdStatus::as_raw since it only exists to expose a linux-raw-sys type, and add locally defined replacements for Winsize and Sysinfo.

In all, these changes eliminate most of the linux-raw-sys types from the public API.

@sunfishcode sunfishcode force-pushed the sunfishcode/lrs-types branch from d2e159c to acf8dfd Compare January 23, 2025 05:37
@sunfishcode sunfishcode force-pushed the sunfishcode/lrs-types branch from acf8dfd to 2e3a213 Compare January 23, 2025 05:47
@sunfishcode sunfishcode mentioned this pull request Jan 23, 2025
21 tasks
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.

1 participant