-
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
What is the goal of this crate in terms of being used as part of a public API? #45
Comments
Yes, this io-lifetimes crate is intended to be used in that way, and it has an MSRV of 1.48. The overall focus is to migrate the ecosystem to use the std types and traits, but the goal is to do so gradually, so I plan to continue to maintain this io-lifetimes crate specifically to help people who aren't ready to bump their MSRV yet migrate. The main area where things get tricky is implementations of the I/O safety traits such as
You can ignore the 1.0.0-rc1 pre-release, and upcoming 1.0.0 release, and just use 0.7.x for now. However over time you might encounter incompatibilities if your users start using the std types and traits. So there are a few different possible approaches here, and it depends on your needs. I'm happy to answer any questions you might have. |
Okay, thanks a lot for those clarifications. From what I gather it seems that what corresponds the most to my needs would actually be to use the |
That sounds right to me! |
Alright, thanks! |
On a project I'm working on we have some crate for which it would make a lot of sense to have
OwnedFd
as part of its public API, however we don't want to bump our MSRV to 1.63 just yet.One of the options we are considering is to publicly depend on io-lifetimes and use its types and traits instead. However I'd like to be sure if this is the way this library is meant to be used? Looking at #38, it appears that the main focus of the project is to actually migrate the ecosystem to the std types and traits.
The text was updated successfully, but these errors were encountered: