https://github.com/dpc/cbuf-rs
Circular Buffer for Rust
https://github.com/dpc/cbuf-rs
Last synced: 8 months ago
JSON representation
Circular Buffer for Rust
- Host: GitHub
- URL: https://github.com/dpc/cbuf-rs
- Owner: dpc
- License: mpl-2.0
- Created: 2015-06-20T03:58:49.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-11-19T09:40:48.000Z (over 4 years ago)
- Last Synced: 2025-09-22T08:58:31.441Z (8 months ago)
- Language: Rust
- Size: 558 KB
- Stars: 8
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MPL
Awesome Lists containing this project
README
# cbuf - Circular buffer
## Introduction
Non-thread-shareable, simple and efficient Circular Buffer implementation that
can store N elements when full (typical circular buffer implementations store
N-1) without using additional flags.
Uses only `core` so can be used in `#[no_std]` projects by using
`no_std` feature.
## Usage
In `Carto.toml`
[dependencies]
cbuf = "*"
In `src/main.rs`:
extern crate cbuf;