#buffer #byte-buffer #fifo-queue #queue #ring-buffer #fifo

ringtail

Efficient ring buffer for byte buffers, FIFO queues, and SPSC channels

6 releases

Uses old Rust 2015

0.3.0 Aug 10, 2018
0.2.2 Aug 3, 2018
0.2.0 May 17, 2018
0.1.1 Feb 24, 2018

#1265 in Concurrency

MIT license

32KB
748 lines

Ringtail

Efficient ring buffer implementations for byte buffers, FIFO queues, and SPSC channels.

Build Status Crates.io Documentation License

Documentation

Installation

Add this to your Cargo.toml file:

[dependencies]
ringtail = "0.2"

License

This library is licensed under the MIT license. See the LICENSE file for details.


lib.rs:

Ringtail is a collection of buffers and queues, useful for networking, thread communication, and real-time programming.

Provided data structures are designed for efficiency first and foremost, so some common operations you might expect of queues may be missing in order to allow certain optimizations. These are not general-purpose structures; several versions of one structure may be provided with different trade-offs.

Buffers

In Ringtail, a buffer is a queue optimized for reading and writing multiple elements in bulk, like an in-memory version of an I/O stream.

No runtime deps