{"id":57695,"library":"async-compression","title":"Async Compression","description":"Adaptors between compression crates and Rust's modern asynchronous IO types.","status":"active","version":"0.4.42","language":"rust","source_language":null,"source_url":"https://github.com/Nullus157/async-compression","tags":["compression","async","gzip","tokio"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nasync-compression = \"0.4.42\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add async-compression","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"GzipDecoder","correct":"use async_compression::tokio::bufread::GzipDecoder;"}],"quickstart":{"code":"use async_compression::tokio::bufread::GzipDecoder;\nuse tokio::io::AsyncReadExt;\n\n#[tokio::main]\nasync fn main() -> Result<(), Box<dyn std::error::Error>> {\n    let file = tokio::fs::File::open(\"file.gz\").await?;\n    let reader = tokio::io::BufReader::new(file);\n    let mut decoder = GzipDecoder::new(reader);\n    let mut contents = String::new();\n    decoder.read_to_string(&mut contents).await?;\n    println!(\"{}\", contents);\n    Ok(())\n}","lang":"rust","description":"Decompress a gzip file asynchronously"},"warnings":[{"fix":"Add `features = [\"tokio\"]` to async-compression dependency in Cargo.toml.","message":"Requires a feature flag for the async runtime (e.g., tokio, async-std).","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'adaptor':3 'async':1,15 'asynchron':11 'compress':2,5,14 'crate':6 'gzip':16 'io':12 'modern':10 'rust':8 'tokio':17 'type':13","created_at":"2026-06-16T15:54:01.133304+00:00","updated_at":"2026-06-16T15:54:01.133304+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/Nullus157/async-compression","github":"https://github.com/Nullus157/async-compression","docs":"https://docs.rs/async-compression/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["async","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}}