github / twirp-rs

Twirp RPC for Rust
MIT License
24 stars 2 forks source link

Upgrade to http 1.0 and hyper 1.1 #4

Closed jorendorff closed 8 months ago

jorendorff commented 8 months ago

This unavoidably breaks our examples and public API since Server was deleted.

However, I replaced it with axum::serve and found out that axum::Router is a decent replacement for our Router type and we get to delete a bunch of code.

Bumps both crates' version numbers to 0.2.

jorendorff commented 8 months ago

Axum makes the most sense now. It's a pretty established project for a relative newcomer -- two years old, 14k stars on github, 250 contributors, 100k+ monthly downloads (more than Warp)...

Hyper 1.x is designed to be a very low-level back-end library. I think we have to have something on top of Hyper, and Axum is the best existing choice.