{"id":67097,"library":"snmalloc-rs","title":"snmalloc-rs","description":"Rust bindings for the snmalloc memory allocator.","status":"active","version":"0.7.4","language":"rust","source_language":null,"source_url":"https://github.com/microsoft/snmalloc","tags":["allocator","memory","bindings","performance"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nsnmalloc-rs = \"0.7.4\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add snmalloc-rs","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"SnMalloc","correct":"use snmalloc_rs::SnMalloc;"}],"quickstart":{"code":"use snmalloc_rs::SnMalloc;\n\n#[global_allocator]\nstatic ALLOC: SnMalloc = SnMalloc;\n\nfn main() {\n    let mut v = vec![1, 2, 3];\n    v.push(4);\n    println!(\"{:?}\", v);\n}","lang":"rust","description":"Set snmalloc as the global allocator."},"warnings":[],"env_vars":null,"search_vec":"'alloc':10,11 'bind':5,13 'memori':9,12 'perform':14 'rs':3 'rust':4 'snmalloc':2,8 'snmalloc-r':1","created_at":"2026-06-17T17:32:55.952344+00:00","updated_at":"2026-06-17T17:32:55.952344+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/microsoft/snmalloc","github":"https://github.com/microsoft/snmalloc","docs":"https://docs.rs/snmalloc-rs/","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}}