Skip to content

refactor!: use rustix#876

Merged
George-Miao merged 1 commit intocompio-rs:masterfrom
George-Miao:refactor/use-rustix
Apr 18, 2026
Merged

refactor!: use rustix#876
George-Miao merged 1 commit intocompio-rs:masterfrom
George-Miao:refactor/use-rustix

Conversation

@George-Miao
Copy link
Copy Markdown
Member

@George-Miao George-Miao commented Apr 17, 2026

Haven't refactored aio yet, will do that in a separate PR with nix.

Seems like I have to do that in this PR then

@George-Miao George-Miao self-assigned this Apr 17, 2026
@George-Miao George-Miao force-pushed the refactor/use-rustix branch from 54669c6 to e003acc Compare April 17, 2026 01:44
@George-Miao George-Miao marked this pull request as draft April 17, 2026 01:46
Copy link
Copy Markdown
Member

@Berrysoft Berrysoft left a comment

Choose a reason for hiding this comment

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

It's a bit massive to expose rustix types in the constructors, e.g., Recv::new. But it's up to you.

Comment thread compio-driver/build.rs Outdated
Comment thread compio-driver/src/sys/op/socket/unix.rs
Comment thread compio-driver/src/sys/op/unix.rs
Comment thread compio-driver/src/sys/pal/unix/mod.rs Outdated
Comment thread compio-driver/src/sys/pal/unix/mod.rs
Comment thread compio-driver/src/sys/pal/unix/mod.rs
@George-Miao George-Miao force-pushed the refactor/use-rustix branch from e003acc to c85bec7 Compare April 17, 2026 03:59
@George-Miao George-Miao requested a review from Berrysoft April 17, 2026 04:00
@George-Miao George-Miao marked this pull request as ready for review April 17, 2026 04:00
@George-Miao George-Miao force-pushed the refactor/use-rustix branch from c85bec7 to 0d98402 Compare April 17, 2026 04:02
@George-Miao
Copy link
Copy Markdown
Member Author

It's a bit massive to expose rustix types in the constructors, e.g., Recv::new. But it's up to you.

Just RecvFlags, SendFlags, OFlags and Mode, should be fine.

@George-Miao George-Miao force-pushed the refactor/use-rustix branch 6 times, most recently from f2cce67 to 2006fc1 Compare April 17, 2026 04:21
Comment thread compio-driver/src/sys/pal/unix/aio/aio_only.rs Outdated
@George-Miao George-Miao force-pushed the refactor/use-rustix branch 6 times, most recently from 7652438 to 4e1dc0d Compare April 17, 2026 04:42
Copy link
Copy Markdown
Member

@Berrysoft Berrysoft left a comment

Choose a reason for hiding this comment

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

LGTM.

@Berrysoft
Copy link
Copy Markdown
Member

Tests are failing on macOS.

Comment thread compio-driver/src/sys/op/socket/poll.rs Outdated
Comment thread compio-driver/src/sys/op/socket/unix.rs Outdated
@George-Miao George-Miao force-pushed the refactor/use-rustix branch 2 times, most recently from 101ac79 to a41109f Compare April 17, 2026 23:52
@George-Miao George-Miao force-pushed the refactor/use-rustix branch from a41109f to a0a7568 Compare April 17, 2026 23:53
@George-Miao George-Miao enabled auto-merge April 18, 2026 00:00
@George-Miao George-Miao requested a review from Berrysoft April 18, 2026 00:29
@George-Miao George-Miao added this pull request to the merge queue Apr 18, 2026
Merged via the queue into compio-rs:master with commit 537c667 Apr 18, 2026
77 checks passed
@George-Miao George-Miao deleted the refactor/use-rustix branch April 18, 2026 03:14
@github-actions github-actions bot mentioned this pull request Apr 18, 2026
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.

2 participants