Maybe the circular-buffer or ringbuffer crates.
Activity