Commit 0c68b6b
committed
feat: Upgrade to Hyper 1.0, Tonic 0.12, and hyper-rustls 0.27
This commit performs a coordinated upgrade of the HTTP stack:
Dependencies:
- hyper 0.14 → 1.0
- tonic 0.11 → 0.12
- tower-http 0.4 → 0.5
- http 0.2 → 1.0
- hyper-rustls 0.25 → 0.27 (fixes RUSTSEC-2026-0049)
- prost 0.12 → 0.13 (tonic 0.12 requirement)
New dependencies:
- http-body-util: Body collection helpers for hyper 1.0
- hyper-util: Legacy client support (hyper 1.0 removed the old Client)
Key API Changes:
- Socket trait: Uses hyper::rt::Read/Write instead of AsyncRead/AsyncWrite
- HttpSender: Uses hyper_util::client::legacy::Client
- Body handling: Uses http_body_util::BodyExt::collect().await.to_bytes()
- Hrana: Updated for hyper 1.0 body types
- Replication: Uses tonic 0.12 body types (BoxBody)
- Sync tests: Updated server implementation for hyper 1.0
Security:
- Fixes RUSTSEC-2026-0049 (CRL validation bypass in rustls-webpki via rustls 0.23)
Breaking Changes:
- None in public API
Testing:
- All unit tests pass1 parent e4beaca commit 0c68b6b
14 files changed
Lines changed: 877 additions & 389 deletions
File tree
- libsql-replication
- src/generated
- libsql
- src
- database
- hrana
- replication
- sync
- util
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
0 commit comments