sunfishcode / io-lifetimes

A low-level I/O ownership and borrowing library
Other
100 stars 10 forks source link

Update for io_safety being stabilized. #41

Closed sunfishcode closed 2 years ago

sunfishcode commented 2 years ago

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.

sunfishcode commented 2 years ago

This will be a semver-incompatible change. And since the main types and traits are stablized now, I think it makes sense to make this a 1.0 release.