#linked-list #const-context #compile-time

const_list

A tiny linked list usable in const contexts

1 unstable release

0.1.0 Aug 28, 2023

#16 in #const-context

Download history 23/week @ 2025-08-18 45/week @ 2025-08-25 72/week @ 2025-09-01 46/week @ 2025-09-08 51/week @ 2025-09-15 46/week @ 2025-09-22 68/week @ 2025-09-29 33/week @ 2025-10-06 110/week @ 2025-10-13 122/week @ 2025-10-20 70/week @ 2025-10-27 50/week @ 2025-11-03 57/week @ 2025-11-10 61/week @ 2025-11-17 75/week @ 2025-11-24 94/week @ 2025-12-01

293 downloads per month
Used in 11 crates (4 directly)

MIT/Apache

5KB
79 lines

const_list

Crates.io Docs.rs Unsafe Forbidden

const_list provides a minimal linked-list which may be used at compile-time. For example:

const MY_LIST: ConstList<'static, i32> = ConstList::new()
    .push(2)
    .push(4)
    .push(8);

assert_eq!(8, MY_LIST.pop().0.unwrap());

No runtime deps