Closed lipanski closed 7 years ago
And my thoughts about libcurl
.
libcurl
used only for making http POST
requests to the mock server launched in the thread.
May use async channel
to comunicate in threads to add/remove/reset mocks without http and serailization/desirailization?
Like https://tokio.rs/docs/going-deeper-futures/synchronization/#channels
Sorry for my poor English.
I guess @estin suggestion above is somehow tangled into the larger discussion of making mockito testthread-local. Whatever we'll end up doing here, it would be nice if it'd also account for that.
@estin @lucab a great day for Mockito :tada:
0.8.0 removed the need for curl (and serde for that matter).
please check the changelog because with 0.7.0 I introduced some breaking changes, but also some new features.
👍 Thanks for pinging back, I'll give it a try soon.
dev-dependencies
cannot be opted out (see this) and the libcurl dependencies poses problems when cross-compiling the crate.originall reported here.
cc @lucab I'll try to think of something but I went for curl & http-muncher because the hyper server doesn't work on Windows (maybe I'll just use TcpStream + hyper only as a parser). libcurl is also way faster apparently.