-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update for io_safety being stabilized. #41
Merged
Merged
Commits on Aug 11, 2022
-
Update for io_safety being stabilized.
io_safety is now [stable in Rust 1.63]! This PR updates io-lifetimes to use the standard library types and traits when available, and use its own types and traits on older Rust versions. The traits `FromFd` and `IntoFd` are now marked as deprecated. These are replaced by `From<OwnedFd>` and `From<...> for OwnedFd` in the standard library, and users should migrate accordingly. [stable in Rust 1.63]: https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html#rust-ownership-for-raw-file-descriptorshandles-io-safety
Configuration menu - View commit details
-
Copy full SHA for 5023e8d - Browse repository at this point
Copy the full SHA 5023e8dView commit details -
Disable deprecation warnings for our own uses of
FromFd
andIntoFd
.And, migrate the portability types and traits to use `From<OwnedFd>` and `Into<OwnedFd>`.
Configuration menu - View commit details
-
Copy full SHA for 831c21c - Browse repository at this point
Copy the full SHA 831c21cView commit details -
Deprecate the
from_fd
function, rather than theFromFd
trait.This allows the `from_into_fd` extension to continue working, for now.
Configuration menu - View commit details
-
Copy full SHA for 70caac6 - Browse repository at this point
Copy the full SHA 70caac6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3244b09 - Browse repository at this point
Copy the full SHA 3244b09View commit details
Commits on Aug 12, 2022
-
For the
IntoFd
/etc traits, deprecate the whole trait.This PR isn't deprecating `FromFd` yet, because it provides the `from_into_fd` utility.
Configuration menu - View commit details
-
Copy full SHA for 2a85c7c - Browse repository at this point
Copy the full SHA 2a85c7cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c03194f - Browse repository at this point
Copy the full SHA c03194fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a7853b - Browse repository at this point
Copy the full SHA 9a7853bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c5f61b - Browse repository at this point
Copy the full SHA 3c5f61bView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.