Skip to content

2.0.0

Choose a tag to compare

@kotauskas kotauskas released this 26 Apr 18:42
· 239 commits to main since this release
2.0.0
9a1727d

The long-awaited 2.0.0 release brings substantial API enhancements that constitute breaking changes, countless bugfixes, better portability, some future-proofing, a grand refactor and significant scope creep mitigation.

You can upgrade to the new version by changing your Cargo.toml to depend on Interprocess 2.0.0 instead of 1.2.1 and fixing the compilation errors that ensue. The behavioral changes have been made in a manner that avoids the introduction of bugs that successfully compile. The Rustdoc documentation contains all the information that's needed to write code that uses Interprocess 2.0.0, and, by extension, all the information that's needed to port dependents of Interprocess 1.2.1.

  • Many bugs have been fixed
    • A comprehensive set of testing utilities has been added to prevent new bugs of the embarrassing variety
  • The minimum Rust version has been bumped to 1.75.0, bringing many improvements to both the API and the internals, including RAII of file descriptors and handles and use of RPITITs
  • Platform support has been clarified and expanded
  • Windows named pipe support has been largely remade:
    • The API has been overhauled to be more idiomatic to Rust with expanded use of generics
    • A "limbo" is now used to prevent in-flight data from being lost when dropping connections
  • Small API deficiencies, such as inaccurate types that unnecessarily made invalid options representable, have been corrected
  • Windows security descriptors have received a proper API
  • Numerous improvements to local sockets
    • They have been made more uniform across platforms – the portability magic that is now in place has eliminated the need to explicitly acknowledge the platform differences in most practical programs
      • Ud-socket local socket listeners now clean up corpse socket files when dropped
    • The new API allows explicit selection of the underlying implementation: every possible backend of local sockets has its own public API, and all of them implement the new local socket traits
    • The name type and the name creation API have been overhauled to facilitate the changes
    • Streams are now splittable by value and readable + writable by reference
  • Some functionality has been offloaded to the recvmsg crate – it is now part of the public API of Interprocess
  • Ud-sockets have been outsourced to the standard library
  • Signal support has been removed in favor of signal_hook