include_file_compress

Crates.ioinclude_file_compress
lib.rsinclude_file_compress
version0.1.3
sourcesrc
created_at2024-04-24 10:43:03.901951
updated_at2024-04-26 07:18:15.880417
descriptionIncludes content of file in your binary with compression at compile time.
homepage
repositoryhttps://github.com/DevNulPavel/include_file_compress
max_upload_size
id1218636
size12,147
(DevNulPavel)

documentation

https://docs.rs/include_file_compress

README

Include file with compile-time compression

This procedural macros includes content of file in your binary with compression at compile time.

It can be useful for including static content of CSS, JS files with compression in compile time.

At this moment deflate compression using flate2 library is supported only.

Example

use include_file_compress::include_file_compress_deflate;

let _compressed =
    include_file_compress_deflate!("data_samples/data.txt", 5);
Commit count: 14

cargo fmt