scottlamb / retina

High-level RTSP multimedia streaming library, in Rust
https://crates.io/crates/retina
Apache License 2.0
244 stars 48 forks source link

breaking changes for v0.4.0 #47

Open scottlamb opened 2 years ago

scottlamb commented 2 years ago

Work underway on the next branch.

Breaking changes I'm considering:

I'm open to others.

Deferred

I'm going to punt on returning anything borrowed from the Session/Demuxed. This can't be done with the futures::stream::Stream interface (as Rust doesn't have GATs yet / it's unclear if Stream can be extended to support them anyway). I think switching to just an inherent method async fn next(&mut self) -> ...Item might be worthwhile, which would let us borrow from a ring buffer (see #6). But I don't want to make the improvements already implemented wait for that, and folks say "version numbers are cheap".

Other deferred stuff, because again version numbers are cheap, and these aren't as fully baked as the stuff above the fold: