{"id":13566254,"url":"https://github.com/gendx/lzma-rs","last_synced_at":"2025-12-12T16:49:39.899Z","repository":{"id":26079412,"uuid":"105751956","full_name":"gendx/lzma-rs","owner":"gendx","description":"An LZMA decoder written in pure Rust","archived":false,"fork":false,"pushed_at":"2024-07-17T10:20:01.000Z","size":1812,"stargazers_count":141,"open_issues_count":35,"forks_count":29,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-01T18:48:01.042Z","etag":null,"topics":["codec","decoder","lzma"],"latest_commit_sha":null,"homepage":"","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/gendx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-10-04T09:35:15.000Z","updated_at":"2025-03-24T15:31:31.000Z","dependencies_parsed_at":"2023-02-15T18:46:27.302Z","dependency_job_id":"d42a5927-6eeb-48b4-a6c8-7649d4cf9369","html_url":"https://github.com/gendx/lzma-rs","commit_stats":{"total_commits":169,"total_committers":14,"mean_commits":"12.071428571428571","dds":0.3727810650887574,"last_synced_commit":"5d31c33cb0b0418ff1951e379214ef4775a070a8"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gendx%2Flzma-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gendx%2Flzma-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gendx%2Flzma-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gendx%2Flzma-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gendx","download_url":"https://codeload.github.com/gendx/lzma-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247097928,"owners_count":20883125,"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":["codec","decoder","lzma"],"created_at":"2024-08-01T13:02:05.516Z","updated_at":"2025-12-12T16:49:34.861Z","avatar_url":"https://github.com/gendx.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# lzma-rs\n\n[![Crate](https://img.shields.io/crates/v/lzma-rs.svg?logo=rust)](https://crates.io/crates/lzma-rs)\n[![Documentation](https://img.shields.io/docsrs/lzma-rs?logo=rust)](https://docs.rs/lzma-rs)\n[![Minimum Rust 1.71](https://img.shields.io/badge/rust-1.71%2B-orange.svg?logo=rust)](https://releases.rs/docs/1.71.0/)\n[![Dependencies](https://deps.rs/repo/github/gendx/lzma-rs/status.svg)](https://deps.rs/repo/github/gendx/lzma-rs)\n[![Safety Dance](https://img.shields.io/badge/unsafe-forbidden-success.svg?logo=rust)](https://github.com/rust-secure-code/safety-dance/)\n![Build Status](https://github.com/gendx/lzma-rs/workflows/Build%20and%20run%20tests/badge.svg)\n[![Codecov](https://codecov.io/gh/gendx/lzma-rs/branch/master/graph/badge.svg?token=HVo74E0wzh)](https://codecov.io/gh/gendx/lzma-rs)\n[![Lines of Code](https://www.aschey.tech/tokei/github/gendx/lzma-rs?category=code)](https://github.com/aschey/vercel-tokei)\n[![Downloads (crates.io)](https://img.shields.io/crates/d/lzma-rs?label=downloads\u0026logo=rust)](https://crates.io/crates/lzma-rs)\n\nThis project is a decoder for LZMA and its variants written in pure Rust, with focus on clarity.\nIt already supports LZMA, LZMA2 and a subset of the `.xz` file format.\n\n## Usage\n\nDecompress a `.xz` file.\n\n```rust\nlet filename = \"foo.xz\";\nlet mut f = std::io::BufReader::new(std::fs::File::open(filename).unwrap());\n// \"decomp\" can be anything that implements \"std::io::Write\"\nlet mut decomp: Vec\u003cu8\u003e = Vec::new();\nlzma_rs::xz_decompress(\u0026mut f, \u0026mut decomp).unwrap();\n// Decompressed content is now in \"decomp\"\n```\n\n## Encoder\n\nFor now, there is also a dumb encoder that only uses byte literals, with many hard-coded constants for code simplicity.\nBetter encoders are welcome!\n\n## Contributing\n\nPull-requests are welcome, to improve the decoder, add better encoders, or more tests.\nUltimately, this project should also implement .xz and .7z files.\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgendx%2Flzma-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgendx%2Flzma-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgendx%2Flzma-rs/lists"}