Count, allow, deny, or forbid allocations on a per-expression or per-function basis for debugging.
# Cargo.toml
[dependencies]
alloc_counter = "0.0.4"No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create an allocation counter and measure allocations from a vector creation.
Use with #[global_allocator] and ensure single-threaded testing.
No dependency data recorded yet.