| Crates.io | vecless |
| lib.rs | vecless |
| version | 0.3.0 |
| created_at | 2025-07-06 14:20:24.743748+00 |
| updated_at | 2025-07-07 10:38:23.553667+00 |
| description | A minimal, Vec-free, singly linked list with Display support and ergonomic APIs. |
| homepage | https://github.com/Pjdur/vecless |
| repository | https://github.com/Pjdur/vecless |
| max_upload_size | |
| id | 1740167 |
| size | 25,461 |
vecless is a minimal, ergonomic, singly linked list implementation in Rust — no Vec required.
Vec or heap-allocated arrays.add(...) with any iterableDisplay for clean, human-readable outputfor loops and .iter()use vecless::List;
fn main() {
let list = List::new().add(["a", "b", "c"]);
println!("{}", list); // Output: [a, b, c]
}
Rust’s built-in Vec<T> is powerful and flexible — but it doesn’t implement the Display trait, which means you can’t print it with {}. Instead, you have to use the debug formatter {:?}:
let v = vec![1, 2, 3];
println!("{:?}", v); // [1, 2, 3]
vecless was created to:
Display out of the boxVec for learning and experimentationWhile not a replacement for Vec in performance-critical code, vecless is great for:
Want to contribute or suggest improvements? Open an issue or start a discussion!