{"id":58420,"library":"heapsize","title":"HeapSize","description":"Infrastructure for measuring the total runtime size of an object on the heap.","status":"active","version":"0.4.2","language":"rust","source_language":null,"source_url":"https://github.com/servo/heapsize","tags":["heap","size","measurement","memory"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nheapsize = \"0.4.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add heapsize","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"HeapSizeOf","correct":"use heapsize::HeapSizeOf;"}],"quickstart":{"code":"use heapsize::HeapSizeOf;\n\nfn main() {\n    let v: Vec<u8> = vec![0; 100];\n    println!(\"Heap size: {} bytes\", v.heap_size_of_children());\n}","lang":"rust","description":"Measures the heap size of a vector."},"warnings":[{"fix":"Consider using alternative heap measurement tools or the `alloc` crate's methods.","message":"This crate is unmaintained and may not work with newer Rust versions.","severity":"breaking","affected_versions":">=0.4.0"}],"env_vars":null,"search_vec":"'heap':14,15 'heapsiz':1 'infrastructur':2 'measur':4,17 'memori':18 'object':11 'runtim':7 'size':8,16 'total':6","created_at":"2026-06-16T16:23:03.160335+00:00","updated_at":"2026-06-16T16:23:03.160335+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/servo/heapsize","github":"https://github.com/servo/heapsize","docs":"https://docs.rs/heapsize/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility","other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}