High-level datatypes library

I’ve created the chunk-streamer Rust library for streaming chunk data via futures::stream:

https://crates.io/crates/chunk-streamer/0.1.0

Please lmk any feedback in terms of types/dependencies, etc. It’s my first Rust library, so I just lifted/shifted code and winged it a bit. Hopefully, it is in an approximately useful state!

I’ll update the README later, but (butchered) usage is:

let chunk_streamer = ChunkStreamer::new("identifier", DataMap, AutonomiClient, 8);
let chunk_receiver = chunk_streamer.open(range_from, range_to);

Actually, docs.rs does docs much better! ha! ChunkStreamer in chunk_streamer::chunk_streamer - Rust

@happybeing there are dependencies on the Autonomi Client and DataMap types as above, which I think should be fine for public and private data?

10 Likes