{"id":75456,"library":"defer-drop","title":"Defer Drop","description":"Defer dropping large types to a background thread to avoid blocking the current thread.","status":"active","version":"1.3.0","language":"rust","source_language":null,"source_url":"https://github.com/Lucretiel/defer-drop","tags":["defer","drop","background","performance","memory"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ndefer-drop = \"1.3.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add defer-drop","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"DeferDrop","correct":"use defer_drop::DeferDrop;"}],"quickstart":{"code":"use defer_drop::DeferDrop;\n\nfn main() {\n    let large_data = vec![0u8; 1_000_000];\n    let deferred = DeferDrop::new(large_data);\n    drop(deferred); // drop happens on background thread\n}","lang":"rust","description":"Wraps a value so its drop is deferred to a background thread."},"warnings":[],"env_vars":null,"search_vec":"'avoid':12 'background':9,19 'block':13 'current':15 'defer':1,3,17 'drop':2,4,18 'larg':5 'memori':21 'perform':20 'thread':10,16 'type':6","created_at":"2026-06-17T19:17:11.653651+00:00","updated_at":"2026-06-17T19:17:11.653651+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/Lucretiel/defer-drop","github":"https://github.com/Lucretiel/defer-drop","docs":"https://docs.rs/defer-drop/","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}}