Registry / utility / heapsize-plugin

heapsize-plugin

JSON →
library0.1.6rscratesunverified

Automatically generating infrastructure for measuring the total runtime size of an object on the heap.

# Cargo.toml [dependencies] heapsize_plugin = "0.1.6"
INSTALL
IMPORT
SIG · HEAPSIZE-PLUGIN
H
heapsize-plugin
utilityrustv0.1.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HeapSize
use heapsize_plugin::HeapSize;

Measure the heap size of a vector.

use heapsize_plugin::HeapSize; fn main() { let data = vec![1, 2, 3]; println!("Heap size: {} bytes", data.heap_size()); }
Debug
Known issues
breakingThis crate is deprecated; the `heapsize` crate is no longer maintained and may have compatibility issues with newer Rust versions.
fix
Use `alloc::alloc::Layout` or a maintained alternative like `deepsize`.
affects: >=0.1.0
Upgrade
Version history
0.1.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
heapsize-plugin — cargo add heapsize-plugin · libregistry