Skip to content

Releases: sagebind/sluice

Update underlying channel implementation

15 Aug 19:32
4391d3d
Compare
Choose a tag to compare

Changed

  • Replace futures-channel with async-channel for the underlying channel implementation for pipes. This delivers slightly better performance and compile times. (#18, #19)

Race condition bugfix

30 Jan 18:01
8cc16ad
Compare
Choose a tag to compare

Fixed

  • Fix panic caused by race condition when writing while dropping reader. (#16)

Dependency trimming

12 Nov 05:45
Compare
Choose a tag to compare

Changed

  • Remove the futures-util dependency, which is a bit heavier than desired, and we didn't really need it anyway.

AsyncBufRead and dependency fix

26 Feb 04:28
3c8f2e1
Compare
Choose a tag to compare

Added

  • PipeReader now also implements AsyncBufRead.(#8)

Fixed

  • Fix io feature of futures-util missing from dependencies, causing a compile error if the feature was not being implicitly enabled by some other dependency (like dev dependencies). (#10, #11) @ignatenkobrain

Dependency optimizations

01 Dec 23:55
0166b2a
Compare
Choose a tag to compare

Changed

  • Do not require default features for futures-util since we do not use them. (#7) @jakobhellermann

Futures upgrade

07 Nov 17:21
Compare
Choose a tag to compare

Changed

  • Upgraded from futures-preview to futures 0.3. This is a breaking change.

Bugfix for reading closed pipes

05 Sep 04:33
Compare
Choose a tag to compare

Fixed

  • Fix a bug where reading from a pipe after already returning EOF would cause a panic. This was caused by Stream::poll_next used internally in the chunked implementation panicking after returning the final stream item, which it is allowed to do according to the current documentation. (#6)

Minor optimizations

23 Jul 04:11
9ab0c42
Compare
Choose a tag to compare

Improvements

  • Sluice now only depends on the futures sub-crates that it actually uses.
  • Add a slight optimization to the chunked pipe writer that checks if the pipe is closed first before writing. Before the optimization, we were first copying the entire write buffer to the pipe, and then discovering that the pipe is closed and returning an error.

Implement Debug for reader and writer

18 Jul 01:12
Compare
Choose a tag to compare

Added

  • Added Debug implementations for PipeReader and PipeWriter.

BrokenPipe error on writer drop

06 Jun 03:55
Compare
Choose a tag to compare
Pre-release

Fixed

  • Fix an issue where dropping the writer while some data still remained in the pipe caused the reader to return a BrokenPipe error instead of allowing you to drain the bytes in the pipe until empty.