The Sorter should use a provided function to get its temp file or equivalent, the output type is only required to be io::Write + io::Read + Seek, a Cursor<Vec<u8>> could also do the job.
Allowing the sorter to use a type that does not write to disk can help introduce miri in the CI tests. Also, some systems do not use the filesystem, I think of no_std targets, we could provide a compatible version (note that we need alloc).
The
Sorter
should use a provided function to get its temp file or equivalent, the output type is only required to beio::Write + io::Read + Seek
, aCursor<Vec<u8>>
could also do the job.Allowing the sorter to use a type that does not write to disk can help introduce miri in the CI tests. Also, some systems do not use the filesystem, I think of
no_std
targets, we could provide a compatible version (note that we needalloc
).