Instead of using the curl crate that requires compiled-in curl libraries, this PR switches the used HTTP client to the reqwest crate.
I was able to successfully pass all tests on my fork after setting up a coveralls token.
Note: It might make sense to refactor the crate API in a follow-up PR - having a separate upload_status function to check whether the upload was successful instead of returning the status of the HTTP request from the send_to_* methods seems more cumbersome than needed.
BREAKING CHANGES:
the error type returned by the send_to_coveralls and send_to_endpoint functions has changed from curl::Error to reqwest::Error.
Closes #9
Instead of using the curl crate that requires compiled-in curl libraries, this PR switches the used HTTP client to the reqwest crate.
I was able to successfully pass all tests on my fork after setting up a coveralls token.
Note: It might make sense to refactor the crate API in a follow-up PR - having a separate
upload_status
function to check whether the upload was successful instead of returning the status of the HTTP request from thesend_to_*
methods seems more cumbersome than needed.BREAKING CHANGES:
send_to_coveralls
andsend_to_endpoint
functions has changed fromcurl::Error
toreqwest::Error
.CoverallsReport
private fields have changed)