Crates.io | hyper-client-sockets |
lib.rs | hyper-client-sockets |
version | 0.4.0 |
source | src |
created_at | 2024-07-18 07:27:34.594635 |
updated_at | 2024-11-20 13:30:00.687091 |
description | A Hyper client library allowing access to Unix, VSock and Firecracker sockets |
homepage | |
repository | https://github.com/kanpov/hyper-client-sockets |
max_upload_size | |
id | 1307098 |
size | 53,788 |
Before hyper v1, hyperlocal was the most convenient solution to use Unix sockets for both client and server. With hyper v1, server socket support is no longer needed (just use UnixListener
or VsockListener
instead of TcpListener
), yet hyperlocal still has it and hasn't received a release since several years.
This library provides hyper v1 client support for:
AF_UNIX
) sockets (HyperUnixStream
implementing hyper traits)AF_VSOCK
) sockets (HyperVsockStream
implementing hyper traits)CONNECT
commands in order to establish a tunnel (HyperFirecrackerStream
implementing hyper traits)Additionally, the library supports different async I/O backends:
tokio-backend
async-io
stack using async-io-backend
The backend to use when connecting can be specified with the Backend
enum. Compiling with both backends enabled is supported but not recommended, and leaving the choice of backend to the user is recommended for library developers.
Lastly, the connector
feature provides compatibility with hyper-util
's Client
connection pool.