subio 0.2.0

Read, write, and seek within a portion of a file as if it were itself a standalone file.
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented0 out of 0 items with examples
  • Size
  • Source code size: 13.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.29 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • clbarnes/subio
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • clbarnes

subio

Implementing IO traits on regions of IO-compatible types.

Use case

It is often convenient to read, write, and seek within a portion of a file as if it were itself a standalone file. For example, a tar or zip archive, which are a number of file entries concatenated together with some metadata.

subio does the (trivial) bookkeeping to allow that to happen, for standard traits [std::io::Read], [std::io::Write], [std::io::Seek] etc..

Extension

The provided types could be extended to support other IO traits like those provided by various async runtimes and io_uring.