this post was submitted on 16 Apr 2024
28 points (100.0% liked)

Rust

5989 readers
21 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] onlinepersona@programming.dev -2 points 7 months ago* (last edited 7 months ago) (2 children)

Hyper doesn't seem to have a roadmap nor an easy way for newcomers to just pick up stuff and get going. It looks more like a "ready TM" project that's already hit EOL and is being maintained. Even after reading the blog post I can't tell what has to be done. There are a bunch issues, but they seem to be a bunch of bugs and refactoring.
Maybe if it looked more like something that needed help, it would get it?

Anti Commercial-AI license

[–] taladar@sh.itjust.works 6 points 7 months ago (1 children)

Hyper itself does work quite well in Rust and is the basis for the vast majority of Rust web frameworks, I just don't really see a use case for wrapping it in the curl API.

[–] onlinepersona@programming.dev 4 points 7 months ago (2 children)

I think it's used because the author of curl is moving towards rust and doing it piecemeal. Although curl is well-tested and battle-tested, it's still written in a memory unsafe programming language, which I think was the motivation.

Anti Commercial-AI license

[–] taladar@sh.itjust.works 4 points 7 months ago

Well, the author of curl is the Daniel Stenberg suggesting its removal here.

[–] asdfasdfasdf@lemmy.world 1 points 6 months ago (1 children)

Hyper was the standard for Rust web servers way before it was used by curl for anything.

[–] onlinepersona@programming.dev 1 points 6 months ago* (last edited 6 months ago)

That's probably why the curl author chose it.

Anti Commercial-AI license

[–] Flipper@feddit.de 6 points 7 months ago (1 children)

Hyper isn't supposed to be what you use if you just want to make a web request or serve some content. You use request and Axum/actix/warp/rocket for that respectively.

It's supposed to handle the conversion between bytestream and structs representing http. It is really good at that.

[–] BB_C@programming.dev 1 points 7 months ago

To be fair, the latest stable version of hyper until a few months ago (pre v1) did offer usable high level API. What you describe only strictly applies to v1 hyper which hasn't been around (in stable release form) for long.

On the other hand, I'm not sure why the parent commentator thinks lack of too much core development is a bad thing, or why they think hyper "needs help".