20 ms·
> Hyper is a fast and safe HTTP implementation Well.. Hyper does rely on unsafe blocks (14 at first glance[2]), so I don't know if we can just assume that it's
by benecollyridam 6y ago
> Hyper is a fast and safe HTTP implementation
Well.. Hyper does rely on unsafe blocks (14 at first glance[2]), so I don't know if we can just assume that it's safe. When Sergey Davidoff did their big smoke test of popular Rust HTTP implementations they found a couple of bugs[1] (through Reqwest).
I love the idea of a safer cURL, but I don't think you should take this as a magical answer to all of cURL's problems.
[1]https://web.archive.org/web/20200506212152/https://medium.com/@shnatsel/smoke-testing-rust-http-clients-b8f2ee5db4e6 https://web.archive.org/web/20200506212152/https://medium.co...
[2] I ran `grep -oR unsafe . | wc -l` after cloning the repo
- steveklabnik 6y ago> I don't think you should take this as a magical answer to all of cURL's problems. Is anyone actually suggesting this?
- benecollyridam 6y agoWell kinda but people are saying that it is memory safe, which is not a guarantee with unsafe code.