LZMA
Generated by scripts/gen-format-pages.py from docs/data/format-metadata/, FILE_FORMATS.csv and docs/formats-master.csv. Do not edit by hand: change the source, then run the script.
LZMA Stream Preview.
At a glance
| Purpose | A raw LZMA stream in the legacy lzma-alone format: a 13-byte header and LZMA1 data. |
| Extensions | .lzma |
| Poka parser | poka-lzma |
| Viewer | poka-metadata-card-viewer |
| Depth tier | Metadata card (see Depth tiers) |
| Breadth tier | B5 Identification (see Breadth tiers) |
How much Poka reads
B5 Identification. The format is recognised and a few properties are shown (name, size, version string). Nothing of the content is decoded.
Confidence: medium (the reviewer read the code). Basis: Reviewed 2026-10-26: read parsers/poka-lzma/src/main.rs (161 lines) and plugin.json. No unit tests or tests/samples.rs; the corpus has no .lzma sample. Covers .lzma. The card decodes the 13-byte header (properties lc, lp, pb, dictionary size, uncompressed size or unknown) and shows the payload size and ratio. Judgement: B5: only the header is decoded; the compressed data is not walked or decoded.
What Poka does not read
- The data is not decompressed, so the content is not shown
- Whether the stream really ends with an end marker is not checked
Libraries
Libraries Poka uses or has assessed for this format, with the status, licence and language the registry records.
- lzma-rs (candidate; MIT; Rust; https://github.com/gendx/lzma-rs) — Pure Rust decoder; docs.rs lists lzma_decompress for .lzma data, plus LZMA2 and XZ. Encoder is minimal.
- liblzma (Rust bindings) (candidate; Apache-2.0 OR MIT; Rust; https://lib.rs/crates/liblzma) — Bindings to the C liblzma (fork of xz2); Stream::new_lzma_decoder initialises a .lzma decoder. C dependency, so awkward for wasm32.
- lzma-sys (candidate; MIT/Apache-2.0; Rust; https://github.com/alexcrichton/xz2-rs) — Raw bindings to liblzma which contains an implementation of LZMA and xz stream encoding/decoding. High level Rust bindings are available in the
xz2crate.; v0.1.20, updated 2022-10-31; matched on li - xz2 (candidate; MIT/Apache-2.0; Rust; https://github.com/alexcrichton/xz2-rs) — Rust bindings to liblzma providing Read/Write streams as well as low-level in-memory encoding/decoding.; v0.1.7, updated 2022-06-06; matched on lib.rs, not tested
- lzma-rust2 (candidate; Apache-2.0; Rust; https://github.com/hasenbanck/lzma-rust2/) — LZMA / LZMA2 / LZIP / XZ compression ported from 'tukaani xz for java'; v0.22.0, updated 2026-10-11; matched on lib.rs, not tested
- liblzma (candidate; MIT OR Apache-2.0; Rust; https://github.com/portable-network-archive/liblzma-rs) — Rust bindings to liblzma providing Read/Write streams as well as low-level in-memory encoding/decoding. forked from xz2.; v0.4.8, updated 2026-08-09; matched on lib.rs, not tested
Sources
- parsers/poka-lzma/src/main.rs
- parsers/poka-lzma/plugin.json