{"id":13683600,"url":"https://github.com/sile/libflate","last_synced_at":"2025-05-15T22:11:56.922Z","repository":{"id":12154270,"uuid":"70087765","full_name":"sile/libflate","owner":"sile","description":"A Rust implementation of DEFLATE algorithm and related formats (ZLIB, GZIP)","archived":false,"fork":false,"pushed_at":"2024-04-30T12:28:33.000Z","size":422,"stargazers_count":183,"open_issues_count":3,"forks_count":35,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-08T09:09:54.640Z","etag":null,"topics":["deflate-algorithm","gzip","rust","zlib"],"latest_commit_sha":null,"homepage":"https://docs.rs/libflate","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/sile.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-05T18:31:06.000Z","updated_at":"2025-01-23T09:07:55.000Z","dependencies_parsed_at":"2024-06-18T17:13:44.320Z","dependency_job_id":"0b303e5d-16b3-4dfa-83a1-6a785decf51d","html_url":"https://github.com/sile/libflate","commit_stats":{"total_commits":252,"total_committers":22,"mean_commits":"11.454545454545455","dds":0.1428571428571429,"last_synced_commit":"6676d36d381eec60f376337e528d658b16c87c7a"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Flibflate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Flibflate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Flibflate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sile%2Flibflate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sile","download_url":"https://codeload.github.com/sile/libflate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254430331,"owners_count":22069909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["deflate-algorithm","gzip","rust","zlib"],"created_at":"2024-08-02T13:02:17.645Z","updated_at":"2025-05-15T22:11:56.857Z","avatar_url":"https://github.com/sile.png","language":"Rust","funding_links":[],"categories":["Rust"],"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 = \"2\"\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%2Fsile%2Flibflate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsile%2Flibflate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsile%2Flibflate/lists"}