Skip to content

Releases: andreacorbellini/rust-circular-buffer

v1.0.0

27 Jan 03:37
Compare
Choose a tag to compare

New features

Other changes

  • Increased the minimum supported rustc version to 1.82

v0.1.9

24 Sep 00:40
Compare
Choose a tag to compare
  • 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).

v0.1.8

23 Sep 07:07
Compare
Choose a tag to compare

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).

v0.1.7

17 Mar 19:43
Compare
Choose a tag to compare

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

Crate: https://crates.io/crates/circular-buffer/0.1.7
Documentation: https://docs.rs/circular-buffer/0.1.7/circular_buffer/index.html

v0.1.6

17 Mar 18:58
Compare
Choose a tag to compare
  • Fixed a bug in bug in bug in the PartialEq implementation that would lead to a panic in some circumstances.

Crate: https://crates.io/crates/circular-buffer/0.1.6
Documentation: https://docs.rs/circular-buffer/0.1.6/circular_buffer/index.html

v0.1.5

05 Nov 02:30
Compare
Choose a tag to compare

Crate: https://crates.io/crates/circular-buffer/0.1.5
Documentation: https://docs.rs/circular-buffer/0.1.5/circular_buffer/index.html

v0.1.4

04 Nov 07:52
Compare
Choose a tag to compare
  • Fixed a bug in range() and range_mut() that made them return more elements than requested in some circumstances.

Crate: https://crates.io/crates/circular-buffer/0.1.4
Documentation: https://docs.rs/circular-buffer/0.1.4/circular_buffer/index.html

v0.1.3

28 Aug 04:43
Compare
Choose a tag to compare

v0.1.2

07 Aug 06:43
Compare
Choose a tag to compare

Crate: https://crates.io/crates/circular-buffer/0.1.2
Documentation: https://docs.rs/circular-buffer/0.1.2/circular_buffer/index.html

v0.1.1

01 Feb 01:18
Compare
Choose a tag to compare
  • Made circular-buffer compatible with the stable version of rustc.

Crate: https://crates.io/crates/circular-buffer/0.1.1
Documentation: https://docs.rs/circular-buffer/0.1.1/circular_buffer/index.html