{"id":64306,"library":"mut-static","title":"Mut Static","description":"Provides a struct to help create mutable statics with lazy_static.","status":"active","version":"5.0.0","language":"rust","source_language":null,"source_url":"https://github.com/tyleo/mut_static","tags":["static","mutable","global","lazy"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nmut_static = \"5.0.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add mut_static","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"MutStatic","correct":"use mut_static::MutStatic;"}],"quickstart":{"code":"use mut_static::MutStatic;\n\nlazy_static! {\n    static ref COUNTER: MutStatic<u32> = MutStatic::new(0);\n}\n\nfn main() {\n    *COUNTER.lock().unwrap() += 1;\n    println!(\"Count: {}\", *COUNTER.lock().unwrap());\n}","lang":"rust","description":"Create and mutate a global static counter."},"warnings":[{"fix":"Add lazy_static to Cargo.toml","message":"Requires lazy_static crate as dependency","severity":"gotcha","affected_versions":">=5.0.0"}],"env_vars":null,"search_vec":"'creat':8 'global':16 'help':7 'lazi':12,17 'mut':1 'mutabl':9,15 'provid':3 'static':2,10,13,14 'struct':5","created_at":"2026-06-17T16:54:29.971963+00:00","updated_at":"2026-06-17T16:54:29.971963+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/tyleo/mut_static","github":"https://github.com/tyleo/mut_static","docs":"https://docs.rs/mut_static/","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-17","next_check":"2026-12-14","install_tag":null}}