Skip to content

Latest commit

 

History

History
137 lines (94 loc) · 5.91 KB

CHANGELOG.md

File metadata and controls

137 lines (94 loc) · 5.91 KB

Changelog

circular-buffer 1.0.0

New features

Other changes

  • Increased the minimum supported rustc version to 1.82

circular-buffer 0.1.9

  • This release does not introduce any new features or bug fixes. It only changes the dev-dependencies used by unit tests (contributed by Ben Beasley).

circular-buffer 0.1.8

New features

Other changes

  • Renamed the use_std cargo feature to std (the old use_std is now an alias for std, so this is not a breaking change).

circular-buffer 0.1.7

New features

  • Implemented the traits Index<usize> and IndexMut<usize> for CircularBuffer. Now elements of the buffer can be accessed and modified with indexing operations (buf[index]), like in the following example:

    use circular_buffer::CircularBuffer;
    let mut buf = CircularBuffer::<5, char>::from(['a', 'b', 'c']);
    assert_eq!(buf[0], 'a');
    buf[1] = 'd';
    assert_eq!(buf[1], 'd');
  • Added new methods to fill the whole buffer, or the spare capacity of the buffer: fill(), fill_with(), fill_spare(), fill_spare_with().

  • Added a new alloc feature that brings heap-allocation features to no_std environments through the alloc crate (contributed by Haoud).

  • Implemented the BufRead trait for CircularBuffer (not available in no_std environments).

Bug fixes

  • Fixed an out-of-bounds read in remove().

  • Removed #[must_use] from drain(): it is perfectly acceptable to ignore the return value from this method.

Other changes

  • Raised the minimum rustc version to 1.65

circular-buffer 0.1.6

  • Fixed a bug in bug in bug in the PartialEq implementation that would lead to a panic in some circumstances.

circular-buffer 0.1.5

circular-buffer 0.1.4

  • Fixed a bug in range() and range_mut() that made them return more elements than requested in some circumstances.

circular-buffer 0.1.3

circular-buffer 0.1.2

circular-buffer 0.1.1

  • Made circular-buffer compatible with the stable version of rustc.

circular-buffer 0.1.0

  • Initial release.