| Crates.io | unstacked |
| lib.rs | unstacked |
| version | 0.1.2 |
| created_at | 2025-05-10 18:23:23.782935+00 |
| updated_at | 2025-05-13 07:27:50.925709+00 |
| description | Lock-free, no-std concurrent stack for Rust |
| homepage | |
| repository | https://github.com/cestef/unstacked |
| max_upload_size | |
| id | 1668676 |
| size | 30,419 |
Concurrent, lock-free, no-std stack implementation in Rust.
use unstacked::Stack;
let stack: Stack<i32> = Stack::new();
stack.push(1);
assert_eq!(stack.pop(), Some(1));
assert_eq!(stack.pop(), None);
stack.push(2);
assert_eq!(stack.peek(), Some(2).as_ref());
assert!(!stack.is_empty())