{"id":65830,"library":"countme","title":"Countme","description":"Counts the number of live instances of types at runtime.","status":"active","version":"3.0.1","language":"rust","source_language":null,"source_url":"https://github.com/matklad/countme","tags":["count","instances","debug","tracking"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ncountme = \"3.0.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add countme","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"CountMe","correct":"use countme::CountMe;"}],"quickstart":{"code":"use countme::CountMe;\n\n#[derive(CountMe)]\nstruct MyStruct;\n\nfn main() {\n    let instance = MyStruct;\n    println!(\"Live instances: {}\", MyStruct::count());\n}","lang":"rust","description":"Derives CountMe to track live instances of a struct."},"warnings":[{"fix":"Add `features = [\"derive\"]` to the Cargo.toml dependency.","message":"Requires the `derive` feature for the `CountMe` derive macro.","severity":"gotcha","affected_versions":">=3.0.0"}],"env_vars":null,"search_vec":"'count':2,12 'countm':1 'debug':14 'instanc':7,13 'live':6 'number':4 'runtim':11 'track':15 'type':9","created_at":"2026-06-17T17:15:46.458421+00:00","updated_at":"2026-06-17T17:15:46.458421+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/matklad/countme","github":"https://github.com/matklad/countme","docs":"https://docs.rs/countme/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility","testing"],"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}}