1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
**Multi-Protocol Async HTTP/1.x, HTTP/2 & HTTP/3 Server Engine**
[](https://crates.io/crates/hyperlane-core)
[](https://docs.rs/hyperlane-core)
[](https://github.com/hyperlane-dev/hyperlane/actions/workflows/rust.yml)
[](https://www.rust-lang.org)
[](../LICENSE)
[Workspace Overview](../README.md) ยท [API Docs](https://docs.rs/hyperlane-core/latest/)
`hyperlane-core` is the Tokio-powered multi-protocol server runtime at the center of the [`hyperlane`](../README.md) workspace. It drives HTTP/1.0, HTTP/1.1, HTTP/2 (`h2c`/`h2`), HTTP/3 (QUIC), WebSocket, and raw TCP connections with deterministic lifecycle hooks and optional Linux `io_uring` transport.
```sh
cargo add hyperlane-core
```
```rust
use hyperlane_core::{Server, ServerConfig, ServerError};
async fn start_server() -> Result<(), Box<ServerError>> {
}
```
```sh
cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-core --all-features --all-targets -- -D warnings
cargo test -p hyperlane-core --all-features
```
This project is licensed under the MIT License. See the [LICENSE](../LICENSE) file for details.
For inquiries, please contact the author at [root@devhub.vip](mailto:root@devhub.vip).