Closed Shnatsel closed 4 years ago
PR removing the last of unsafe code is open: https://github.com/algesten/ureq/pull/31
Is this a tinyvec
canidate?
It has a transitive dependency on smallvec
via unicode-normalization
. So it is, but indirectly.
There has even been a benchmark for transition to tinyvec: https://pastebin.com/zJnMAGrk
Source: https://medium.com/@shnatsel/smoke-testing-rust-http-clients-b8f2ee5db4e6
@Shnatsel https://github.com/algesten/ureq/pull/31 has been fixed via https://github.com/algesten/ureq/pull/68! 🎉
ureq
is a minimal HTTP request library that has a small dependency tree with minimal amounts of unsafe in it (aside ofsmallvec
).Unlike the more complex solutions, it is a good candidate for an Actually Secure™ HTTP client. It also survived the test of downloading the frontpages of the top million websites without crashes or hangs - while
reqwest
and evencurl
failed.Right now
ureq
has 3 unsafe blocks of its own.