✓ Uses Rust 2018 edition
|0.1.3||Sep 3, 2019|
|0.1.2||Aug 14, 2019|
|0.1.1||Aug 14, 2019|
|0.1.0||Aug 13, 2019|
#50 in Compression
56 downloads per month
Used in rust-embed
A variant of
include_str! with compile-time deflation and runtime lazy inflation.
include_str! are great for embedding resources into an executable/library
without involving the complex logistics of maintaining an assets manager.
However, they are copied as-is into the artifact, leading to unnecessarily large binary size.
This library automatically compresses the resources and lazily decompresses them at runtime,
allowing smaller binary sizes.
Nevertheless, this inevitably leads to wasting RAM to store both the compressed and decompressed data, which might be undesirable if the data are too large. An actual installer is still required if the binary involves too many resources that do not need to be kept in RAM all time.