Smol v2.0: What to Expect in the Upcoming Release
The article discusses the upcoming release of smol v2.0, a popular Rust library for asynchronous programming. The author highlights the importance of the new I/O safety feature introduced in Rust v1.63, which guarantees the validity of I/O resources for a specified lifetime. This change has a significant impact on smol, as it allows for better handling of async I/O and eliminates the possibility of missing or spurious events. However, it also introduces some breaking changes, such as the restriction on mutable access to the inner I/O resource. The author acknowledges that this change may break existing code but emphasizes the importance of ensuring I/O safety. The smol-rs team is planning to release smol v2.0 in the near future, although an exact date has not been announced yet. Developers using async-io are advised to be prepared for these changes and consider alternative approaches to efficiently poll I/O resources while maintaining I/O safety.