alexliesenfeld / httpmock

HTTP mocking library for Rust
https://httpmock.rs
MIT License
471 stars 42 forks source link

Update to hyper >=1.0 #97

Closed gtema closed 1 month ago

gtema commented 8 months ago

It would be great if dependency on hyper can be updated (to >= 1.0, ideally 1.1). This causes quite a big set of dependencies in my project stuck with older versions.

alexliesenfeld commented 7 months ago

Thanks for creating this issue. I'm, working on it in https://github.com/alexliesenfeld/httpmock/pull/98 . However, as there is not much documentation on how to use the hyper 1.x server with the same set of features as 0.14, this will probably be on-hold until hyper 1.x stabilised a bit more.

jayvdb commented 2 months ago

For some reason, https://github.com/alexliesenfeld/httpmock/pull/98 was not merged.

alexliesenfeld commented 2 months ago

@jayvdb I have migrated it in a private development branch. httpmock 0.8 will bring significant changes to this library but it still takes a bit time to get everything stable. So it’s done but not shipped yet.

jayvdb commented 1 month ago

It has been 7 months since the last release. When are you expecting to be able to release 0.8?

Maybe #98 could be merged and released as 0.7.1 which is mentioned as the next release in the CHANGELOG.md ?

alexliesenfeld commented 1 month ago

When are you expecting to be able to release 0.8?

I expect the first alpha to be shipped in a few weeks.

Maybe https://github.com/alexliesenfeld/httpmock/pull/98 could be merged and released as 0.7.1 which is mentioned as the next release in the CHANGELOG.md ?

Releasing it in 0.7.1 would more or less require me to do the work twice, because httpmock was largely rewritten for 0.8.0. I'm trying to put my available time 100% into shipping it. I hope you understand.

I'm happy to get a PR though if it can't wait a few more weeks.

jayvdb commented 1 month ago

ok, looking forward to the alpha!

alexliesenfeld commented 1 month ago

Should be fixed now. Let me know if something does not work for you.

jayvdb commented 4 weeks ago

to clarify, https://crates.io/crates/httpmock/0.8.0-alpha.1 has been released. Thanks. Trying it out