#encoder #decoder

no-std bin+lib weezl

Fast LZW compression and decompression

14 releases

0.1.8 Jan 22, 2024
0.1.7 Jul 10, 2022
0.1.6 Apr 21, 2022
0.1.5 Apr 17, 2021
0.1.0-alpha Jul 27, 2020

#15 in Compression

Download history 363533/week @ 2024-12-09 360939/week @ 2024-12-16 170410/week @ 2024-12-23 208725/week @ 2024-12-30 412472/week @ 2025-01-06 465726/week @ 2025-01-13 427606/week @ 2025-01-20 487476/week @ 2025-01-27 536558/week @ 2025-02-03 651022/week @ 2025-02-10 543391/week @ 2025-02-17 583153/week @ 2025-02-24 927635/week @ 2025-03-03 852955/week @ 2025-03-10 1131827/week @ 2025-03-17 1223077/week @ 2025-03-24

4,171,050 downloads per month
Used in 2,300 crates (17 directly)

MIT/Apache

115KB
2K SLoC

weezl

LZW en- and decoding that goes weeeee!

Overview

This library, written in purely safe and dependency-less Rust, provides encoding and decoding for lzw compression in the style as it occurs in gif and tiff image formats. It has a standalone binary that may be used to handle those data streams but it is not compatible with Spencer's compress and uncompress binaries (though a drop-in may be developed at a later point).

Using in a no_std environment is also possible though an allocator is required. This, too, may be relaxed in a later release. A feature flag already exists but currently turns off almost all interfaces.

License

All code is dual licensed MIT OR Apache-2.0.

Dependencies

~175KB