ace_core/storage.rs
1//! Bounded-collection storage, backed by `heapless::Vec` (inline, no_std)
2//! or `alloc::vec::Vec` (heap-backed) depending on the `alloc` feature.
3//! Capacity `N` is enforced identically in both modes; only where the
4//! bytes live differs.
5
6#[cfg(feature = "alloc")]
7extern crate alloc;
8
9#[cfg(not(feature = "alloc"))]
10pub use heapless::Vec;
11
12#[cfg(feature = "alloc")]
13pub type Vec<T, const N: usize> = alloc::vec::Vec<T>;