{"id":59648,"library":"deepsize","title":"Deepsize","description":"A crate for measuring the total size of object on the stack and heap.","status":"active","version":"0.2.0","language":"rust","source_language":null,"source_url":"https://github.com/Aeledfyr/deepsize","tags":["memory","size","heap","measurement","derive"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ndeepsize = \"0.2.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add deepsize","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"DeepSizeOf","correct":"use deepsize::DeepSizeOf;"}],"quickstart":{"code":"use deepsize::DeepSizeOf;\n\n#[derive(DeepSizeOf)]\nstruct MyStruct {\n    data: Vec<u8>,\n}\n\nfn main() {\n    let obj = MyStruct { data: vec![0; 100] };\n    println!(\"Total size: {} bytes\", obj.deep_size_of());\n}","lang":"rust","description":"Measures the total memory footprint of a struct including heap allocations."},"warnings":[{"fix":"Add `features = [\"derive\"]` to your Cargo.toml dependency.","message":"Requires the `derive` feature to use `#[derive(DeepSizeOf)]`.","severity":"gotcha","affected_versions":">=0.2.0"}],"env_vars":null,"search_vec":"'crate':3 'deepsiz':1 'deriv':20 'heap':15,18 'measur':5,19 'memori':16 'object':10 'size':8,17 'stack':13 'total':7","created_at":"2026-06-16T17:11:43.979882+00:00","updated_at":"2026-06-16T17:11:43.979882+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/Aeledfyr/deepsize","github":"https://github.com/Aeledfyr/deepsize","docs":"https://docs.rs/deepsize/","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-16","next_check":"2026-12-13","install_tag":null}}