You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
object_store is quite a large dependency. I would pull in coalesce_ranges (or ask object_store for a stub crate) and then be able to drop the object_store dependency.
We can make object_store (and reqwest) optional dependencies.
But we don't need to implement or vendor coalesce_ranges ourselves. The nice thing about having our AsyncFileReader trait is that the Rust user can decide how to implement get_byte_ranges, and they can implement range merging in their own code.
Activity
feefladder commentedon Mar 20, 2025
object_storeis quite a large dependency. I would pull in coalesce_ranges (or ask object_store for a stub crate) and then be able to drop the object_store dependency.kylebarron commentedon Mar 20, 2025
We can make
object_store(andreqwest) optional dependencies.But we don't need to implement or vendor
coalesce_rangesourselves. The nice thing about having ourAsyncFileReadertrait is that the Rust user can decide how to implementget_byte_ranges, and they can implement range merging in their own code.feefladder commentedon Mar 20, 2025
hmmm.. I may whip up some async-cog crate thing then that handles those things.... Will PR for optional deps then
kylebarron commentedon Mar 20, 2025
We can and should define some of those basic middlewares in this library, and then users can decide which they want to use.
feefladder commentedon Mar 21, 2025
...so how could we implement a middleware that does
coalesce_rangeswithout pulling its functionality in-tree? Would a user then do something like: