Skip to content

Conversation

martin-g
Copy link
Contributor

Motivation

std::os::fd has been stabilised since 1.66: https://releases.rs/docs/1.66.0/

std::os::fd are usable for unix and WASI

Solution

Replace all occurrences of std::os::unix::io with std::os::fd

std::os::fd has been stabilized since 1.66: https://releases.rs/docs/1.66.0/

std::os::fd are usable for unix and WASI
Copy link
Member

@ADD-SP ADD-SP left a comment

Choose a reason for hiding this comment

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

Since the std::os::unix::io is not deprecated, and using #[cfg(unix)] nearby the std::os::unix::io looks more straightforward for me, I'm not a big fan of replacing it.

However, I'm not going to block this PR, if other reviewers want it, feel free to merge it.

@ADD-SP ADD-SP added the A-tokio Area: The main tokio crate label Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants