Skip to content

Conversation

martin-g
Copy link
Member

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
@ADD-SP
Copy link
Member

ADD-SP commented Oct 12, 2025

Thanks for your PR! Since the std::os::unix::io is not deprecated, and this doesn't significantly simplify the codebase, we don't have a strong motivation for this change.

@ADD-SP ADD-SP closed this Oct 12, 2025
@martin-g martin-g deleted the unix-fd-std-os-fd branch October 12, 2025 12:40
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