{"id":67235,"library":"heapsize-plugin","title":"Heapsize Plugin","description":"Automatically generating infrastructure for measuring the total runtime size of an object on the heap.","status":"active","version":"0.1.6","language":"rust","source_language":null,"source_url":"https://github.com/servo/heapsize","tags":["heapsize","memory","measurement","deprecated"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nheapsize_plugin = \"0.1.6\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add heapsize_plugin","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"HeapSize","correct":"use heapsize_plugin::HeapSize;"}],"quickstart":{"code":"use heapsize_plugin::HeapSize;\n\nfn main() {\n    let data = vec![1, 2, 3];\n    println!(\"Heap size: {} bytes\", data.heap_size());\n}","lang":"rust","description":"Measure the heap size of a vector."},"warnings":[{"fix":"Use `alloc::alloc::Layout` or a maintained alternative like `deepsize`.","message":"This crate is deprecated; the `heapsize` crate is no longer maintained and may have compatibility issues with newer Rust versions.","severity":"breaking","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'automat':3 'deprec':21 'generat':4 'heap':17 'heapsiz':1,18 'infrastructur':5 'measur':7,20 'memori':19 'object':14 'plugin':2 'runtim':10 'size':11 'total':9","created_at":"2026-06-17T17:34:38.706993+00:00","updated_at":"2026-06-17T17:34:38.706993+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_plugin/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}