| Crates.io | noalloc-vec-rs |
| lib.rs | noalloc-vec-rs |
| version | 0.1.2 |
| created_at | 2025-08-05 05:44:43.462739+00 |
| updated_at | 2026-01-25 10:49:21.979675+00 |
| description | A no-allocation vector implementation for environment without memory allocation. |
| homepage | |
| repository | https://github.com/jaudiger/noalloc-vec-rs |
| max_upload_size | |
| id | 1781573 |
| size | 80,179 |
This Rust library provides a no-allocation vector implementation. This vector is designed to work with a fixed maximum length, avoiding heap allocations (aka putting the vector on the stack) and making it suitable for embedded systems or other environments where dynamic memory allocation is not suitable.
use noalloc_vec_rs::Vec;
const MAX_LENGTH: usize = 10;
let mut vec = Vec::<u32, MAX_LENGTH>::new();
vec.push(42).unwrap();
vec.push(43).unwrap();
assert_eq!(vec.len(), 2);
assert_eq!(vec.get(0), Some(&42));
assert_eq!(vec.get(1), Some(&43));
The CI/CD pipeline is configured using GitHub Actions. The workflow is defined in the .github/workflows folder:
Additionally, Dependabot is configured to automatically update dependencies (GitHub Actions, Cargo dependencies).
The settings of this repository are managed from the gitops-deployments repository using Terraform. The actual configuration applied is located in the Terraform module modules/github-repository.