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

Implement I/O safety traits #1745

Merged
merged 4 commits into from
Jun 9, 2024
Merged

Implement I/O safety traits #1745

merged 4 commits into from
Jun 9, 2024

Commits on Jun 9, 2024

  1. Implement AsFd for all types

    Co-authored-by: ssrlive <[email protected]>
    Thomasdezeeuw and ssrlive committed Jun 9, 2024
    Configuration menu
    Copy the full SHA
    6f2a74b View commit details
    Browse the repository at this point in the history
  2. Use std::os::fd

    Instead of std::os::unix. It also works on WASM/WASI.
    Thomasdezeeuw committed Jun 9, 2024
    Configuration menu
    Copy the full SHA
    4c28a40 View commit details
    Browse the repository at this point in the history
  3. Merge Fd trait implementations for Unix and WASI

    The AsFd, AsRawFd, FromRawFd and IntoRawFd traits.
    
    For WASI this was not implemented for all public types, now it is
    (matching Unix).
    Thomasdezeeuw committed Jun 9, 2024
    Configuration menu
    Copy the full SHA
    bea6065 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5ca5e25 View commit details
    Browse the repository at this point in the history