rust-eventsource-client icon indicating copy to clipboard operation
rust-eventsource-client copied to clipboard

update to hyper 1.0

Open leshow opened this issue 1 year ago • 2 comments

is it possible to update this to the 1.0 release of hyper or does this crate rely on features that got removed?

leshow avatar Aug 26 '24 16:08 leshow

I don't think there is anything blocking this crate from getting updated. However, it is a dependency of the github.com/launchdarkly/rust-server-sdk and would likely result in some large (and breaking) changes on that side. As a result, making that update hasn't yet been made a top priority.

keelerm84 avatar Aug 26 '24 16:08 keelerm84

For people who want to use sse client with hyper 1.0, you could have a look on this simple decoder crate: sse-stream

You can use this crate with a reqwest client, and here is a example how I use this little crate to create a MCP SSE client. https://github.com/4t145/rmcp/blob/dev/crates/rmcp/src/transport/sse.rs

And in the tests, you also can get examples to use this with reqwest or raw hyper

4t145 avatar Mar 21 '25 15:03 4t145