{"id":50418099,"url":"https://github.com/asterinas/libflate","last_synced_at":"2026-05-31T07:02:21.451Z","repository":{"id":214125551,"uuid":"659550400","full_name":"asterinas/libflate","owner":"asterinas","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-28T04:39:45.000Z","size":252,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-18T02:12:48.860Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asterinas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-06-28T04:39:36.000Z","updated_at":"2023-06-28T04:40:06.000Z","dependencies_parsed_at":"2023-12-26T03:45:03.218Z","dependency_job_id":null,"html_url":"https://github.com/asterinas/libflate","commit_stats":null,"previous_names":["asterinas/libflate"],"tags_count":37,"template":false,"template_full_name":null,"purl":"pkg:github/asterinas/libflate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asterinas%2Flibflate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asterinas%2Flibflate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asterinas%2Flibflate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asterinas%2Flibflate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asterinas","download_url":"https://codeload.github.com/asterinas/libflate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asterinas%2Flibflate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33722156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-31T07:02:20.579Z","updated_at":"2026-05-31T07:02:21.441Z","avatar_url":"https://github.com/asterinas.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"libflate\n========\n\n[![libflate](https://img.shields.io/crates/v/libflate.svg)](https://crates.io/crates/libflate)\n[![Documentation](https://docs.rs/libflate/badge.svg)](https://docs.rs/libflate)\n[![Actions Status](https://github.com/sile/libflate/workflows/CI/badge.svg)](https://github.com/sile/libflate/actions)\n[![Coverage Status](https://coveralls.io/repos/github/sile/libflate/badge.svg?branch=master)](https://coveralls.io/github/sile/libflate?branch=master)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\nA Rust implementation of DEFLATE algorithm and related formats (ZLIB, GZIP).\n\nDocumentation\n-------------\n\nSee [RustDoc Documentation](https://docs.rs/libflate).\n\nThe documentation includes some examples.\n\nInstallation\n------------\n\nAdd following lines to your `Cargo.toml`:\n\n```toml\n[dependencies]\nlibflate = \"1\"\n```\n\nAn Example\n----------\n\nBelow is a command to decode GZIP stream that is read from the standard input:\n\n```rust\nextern crate libflate;\n\nuse std::io;\nuse libflate::gzip::Decoder;\n\nfn main() {\n    let mut input = io::stdin();\n    let mut decoder = Decoder::new(\u0026mut input).unwrap();\n    io::copy(\u0026mut decoder, \u0026mut io::stdout()).unwrap();\n}\n```\n\nAn Informal Benchmark\n---------------------\n\nA brief comparison with [flate2](https://github.com/alexcrichton/flate2-rs) and\n[inflate](https://github.com/PistonDevelopers/inflate):\n\n```bash\n$ cd libflate/flate_bench/\n$ curl -O https://dumps.wikimedia.org/enwiki/latest/enwiki-latest-all-titles-in-ns0.gz\n$ gzip -d enwiki-latest-all-titles-in-ns0.gz\n\u003e ls -lh enwiki-latest-all-titles-in-ns0\n-rw-rw-r-- 1 foo foo 265M May 18 05:19 enwiki-latest-all-titles-in-ns0\n\n$ cargo run --release -- enwiki-latest-all-titles-in-ns0\n# ENCODE (input_size=277303937)\n- libflate: elapsed=8.137013s, size=83259010\n-   flate2: elapsed=9.814607s, size=74692153\n\n# DECODE (input_size=74217004)\n- libflate: elapsed=1.354556s, size=277303937\n-   flate2: elapsed=0.960907s, size=277303937\n-  inflate: elapsed=1.926142s, size=277303937\n```\n\nReferences\n----------\n\n- DEFLATE: [RFC-1951](https://tools.ietf.org/html/rfc1951)\n- ZLIB: [RFC-1950](https://tools.ietf.org/html/rfc1950)\n- GZIP: [RFC-1952](https://tools.ietf.org/html/rfc1952)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasterinas%2Flibflate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasterinas%2Flibflate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasterinas%2Flibflate/lists"}