cargo / interprocess
interprocess
What changed in interprocess 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
10 breaking4 deprecations11 new APIs and options2 performance6 behavior and defaults1 tooling15 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initinterprocess 247 changes
Breaking changes 10
Fixed the build on ARMv7, allowing developers to build the project for that architecture.
On xucred platforms, groups no longer includes the EGID twice.
Cargo no longer packages this file, avoiding the impression that Interprocess requires Python.
The umask fallback was removed; the method now returns ErrorKind::Unsupported where a Unix domain socket listener's mode cannot be changed atomically.
Inaccurate types that unnecessarily made invalid options representable have been corrected.
The name type and name creation API have been overhauled to support the local socket API changes.
The minimum Rust version is now 1.75.0, which developers must use to build Interprocess 2.0.0.
Signal support has been removed in favor of signal_hook.
Ud-sockets have been outsourced to the standard library.
The Windows named pipe API has been overhauled to be more idiomatic to Rust, with expanded use of generics.
Deprecations 4
Deprecated in favor of putting the stream in an Rc or Arc, which better expresses the behavior and performance characteristics common to Rust programs.
Local socket stream split is soft-deprecated; using Rc or Arc is preferred because functionality and performance are identical.
Deprecated in favor of inherent methods fulfilling the same function; the deprecation warning can be fixed by removing the import.
Deprecated due to complicated and potentially undesirable fallback behavior.
New APIs and options 10
PeerCreds adds a method to check whether platform limitations prevent groups from returning the full set of supplementary groups.
Local socket streams now expose the other side's credentials, including process ID, effective user and group IDs, and supplementary groups.
Added to work around windows-sys version churn.
Local socket implementation wrappers now have accessors for their underlying implementations.
Lets clients specify the connection timeout and use zero-cost nonblocking mode enablement.
Added to streamline the common case of dealing with "address in use" errors.
A limbo prevents in-flight data from being lost when connections are dropped.
Developers can explicitly select the underlying local socket implementation; each backend has a public API and implements the new local socket traits.
Functionality has been offloaded to the recvmsg crate, which is now part of Interprocess's public API.
Windows security descriptors now have a proper API.
Performance 2
On Unix-like systems, setting local sockets to nonblocking now saves one syscall by avoiding a preceding F_GETFL call.
Unix set_nonblocking methods now use FIONBIO on Linux to reduce system calls; superfluous fcntl(F_GETFL) calls were also optimized out on other platforms.
Behavior and default changes 6
PeerCreds is now supported on illumos, Solaris, and Haiku, which have at least one known-working Interprocess version.
I/O on the same local socket stream can now be performed from multiple threads at once without panics.
Synchronous named pipes now use overlapped I/O, allowing concurrent I/O operations on the same stream.
NetBSD was promoted from Support by association to Explicit support without CI.
Local sockets are more uniform across platforms, eliminating the need to explicitly acknowledge platform differences in most practical programs.
Streams can now be split by value and read from and written to by reference.
Tooling 1
A tool was added to help investigate the behavior of platforms that Interprocess has previously not been ported to.
Fixes and other changes 14
The implementation conservatively assumes the OS does not support or ignores fchmod, rather than treating a successful fchmod as proof that the socket mode was set.
Fixed spurious completion by passing an OVERLAPPED structure.
On named pipes, conversion no longer attempts to reopen handles into overlapped mode.
On xucred platforms, egid now returns Some after correcting the interpretation of cr_groups.
Fixed a crash when reading from a disconnected named pipe stream.
The project is now dual-licensed as 0BSD OR Apache-2.0, with no restrictions introduced.
Fixed a memory leak that affected every Tokio-based stream lingered in versions 2.3.0 and 2.3.1.
Fixed a build failure on 32-bit Unix systems caused by assuming
tv_nsecimplementsFrom<u32>.The project is now licensed under the 0-clause BSD license.
Fixed handling of dead-on-arrival connections.
Unnamed pipes are now inheritable; previously, they defaulted to not being inheritable due to a typo.
Fixed a panic when dropping Tokio-based Windows named pipes outside of a Tokio runtime by replacing the old limbo with a new linger pool used for sync and Tokio named pipes.
Platform support has been clarified and expanded, affecting which platforms developers can target.
Ud-socket local socket listeners now clean up corpse socket files when dropped.
interprocess 12 changes
New APIs and options 1
The module provides an asynchronous wrapper around local sockets, currently implemented by spawning additional threads using the blocking crate.
Fixes and other changes 1
Unix domain sockets, which were previously broken, are now fixed.