Skip to content

Conversation

@notgull
Copy link
Member

@notgull notgull commented Apr 18, 2023

Replaces libc with rustix in the epoll, event ports and poll-based backends. This ensures that libc is entirely bypassed when making system calls.

We can't do kqueue until bytecodealliance/rustix#605 is released.

Supersedes #91

@notgull
Copy link
Member Author

notgull commented Apr 18, 2023

...and since bytecodealliance/rustix#605 is released now, kqueue can be implemented with rustix now too! (Or almost all of it). Thanks, @sunfishcode!

autocfg = "1"

[target.'cfg(any(unix, target_os = "fuchsia", target_os = "vxworks"))'.dependencies]
libc = "0.2.77"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this to dev-deps?

Copy link
Member Author

@notgull notgull Apr 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's still used by the kqueue backend. I can make it kqueue only if you want... although I plan to remove it in the near future.

Copy link
Collaborator

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@notgull notgull merged commit 8d8d2ef into master Apr 23, 2023
@notgull notgull deleted the notgull/rustix2 branch April 23, 2023 14:26
@notgull notgull mentioned this pull request Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants