| Crates.io | sseer |
| lib.rs | sseer |
| version | 0.1.1 |
| created_at | 2026-01-23 00:51:49.872319+00 |
| updated_at | 2026-01-23 06:19:47.321412+00 |
| description | Various helpers for getting Event streams out of your SSE responses |
| homepage | |
| repository | https://github.com/SneedSeedFeed/sseer.git |
| max_upload_size | |
| id | 2063098 |
| size | 106,661 |
sseer (sse - er)A collection of utilities for getting Events out of your SSE streams
As a bit of a learning project, in making a 'real' rust crate. Also got to learn a bit about the async ecosystem and hopefully make some improvements over the original code reqwest-eventsource and eventsource-stream by Julian Popescu
With reqwest:
let request = client.get("https://example.com/events");
let mut event_source = EventSource::new(request)?;
while let Some(result) = event_source.next().await {
// your code here :3
}
Make an EventSource stream over your RequestBuilder and it turns into a Stream. Or if you want to handle it yourself then hit up the event_stream module for a Stream that parses bytes into Events. Or use the parser module if you want to parse it yourself.
let mut event_stream = EventStream::new(stream)?;
std?Yes, without the reqwest feature it's all no_std.