[Unreleased]
Added
Changed
Removed
[0.0.3] - 2024-09-21
Changed
- Previously several error cases returned
std::io::Error
. Now use an application-specific error type: TheTmpProc
trait now has anError
type, andTmpFile
uses a genericE
, which has aFrom<std::io::Error>
bound. - Update to
swctx
0.3.0
.
[0.0.2] - 2024-01-30
Added
- Allow a "minimum file content size" to be specified. If, at the point of
persisting a
TmpFile
the total size of it is smaller than the configured threshold value, the file's contents will be returned as a memory buffer rather than to be persisted into a file.
Changed
- TmpFile's
Write
implementation wrongly assumed that writes where complete. - Return a
Persisted
buffer rather than a two-tuple containing theTmpProc
output and pathname of the persisted file. The new struct also includes size and a duration (between writer creation and persist). - The
TmpProc::finalize()
's signature has changed in order to support file contents stored in memory.
Removed
[0.0.1] - 2024-01-25
Initial release.