changes-stream-rust
changes-stream-rust copied to clipboard
a changes stream for couchdb style APIs - written in Rust
* Update dependency versions. * Update to Rust 2018 and async/await. * Switch to reqwest for BasicAuth support. * Implement `futures::Stream` instead of handlers logic. * Add `Finished` event. *...
No more `unwrap`s!
https://github.com/ashleygwilliams/changes-stream-rust/blob/master/src/lib.rs#L17 The reactor is only used in the `run` method, so might as well create it there instead of saving it.
``` { db: 'http://localhost:5984/my_db', // full database URL feed: 'continuous', // Can also be longpoll technically but not currently implemented filter: 'docs/whatever', // Can be a defined couchdb view, a...