Migrate to reqwest
Currently, we cannot use both rust-gitlab
(depending on hyper
's SSL support) and libgit2
in the same application, because they require different versions of rust-openssl
(hyper: 0.7.x, libgit2: 0.9.x).
(I want to use the both libraries in my GitLab helper application.)
seanmonstar (hyper's author) recommends using reqwest for HTTP clients.
https://github.com/hyperium/hyper/issues/907#issuecomment-255509020
reqwest: Be the convenient, higher level Client crate. This will release very soon, and depend on rust-native-tls. Everyone using hyper for a client should be able to easily switch the reqwest, getting better TLS support immediately, and a (as much as possible) not-breaking API, even as hyper v0.10 comes out with its async Client.
thoughts?
(This MR is based on !51 (merged) changes)