# memory-socket
[](https://crates.io/crates/memory-socket)
[](https://docs.rs/memory-socket/)
[](LICENSE-APACHE)
[](LICENSE-MIT)
Provides an in-memory socket abstraction.
The `memory-socket` crate provides the [`MemoryListener`] and [`MemorySocket`] types which can
be thought of as in-memory versions of the standard library `TcpListener` and `TcpStream`
types.
## Feature flags
- `async`: Adds async support for [`MemorySocket`] and [`MemoryListener`]
[`MemoryListener`]: https://docs.rs/memory-socket/latest/memory-socket/struct.MemoryListener.html
[`MemorySocket`]: https://docs.rs/memory-socket/latest/memory-socket/struct.MemorySocket.html
## License
This project is available under the terms of either the [Apache 2.0 license](LICENSE-APACHE) or the [MIT
license](LICENSE-MIT).