Skip to content

Streaming API for the Rust Reddit Client roux

License

Notifications You must be signed in to change notification settings

torfsen/roux-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Crates.io docs.rs Crates.io

roux-stream

A streaming API for the Rust Reddit client roux.

Reddit's API does not provide "firehose"-style streaming of new posts and comments. Instead, the endpoints for retrieving the latest posts and comments have to be polled regularly. This crate automates that task and provides streams for a subreddit's posts (submissions) and comments.

Documentation

The documentation is available on docs.rs and contains examples for streaming submissions and streaming comments.

An example for streaming both submissions and comments at the same time can be found in the file examples/submissions-and-comments.rs.

License

Distributed under the MIT license. See the file LICENSE for details.

Changelog

See the file CHANGELOG.md.

Contributors

Development

Clone the repository:

git clone https://github.com/torfsen/roux-stream.git
cd roux-stream

Run the tests:

cargo test

Run the example in examples/submissions-and-comments.rs:

cargo run --example submissions-and-comments

About

Streaming API for the Rust Reddit Client roux

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages