Feature Request: Option to retrieve compressed files

31 views
Skip to first unread message

Hugues Morisset

unread,
May 12, 2026, 9:28:48 AM (11 days ago) May 12
to rust-embed-devs
I recently implemented a feature in include-flate that allows files to be retrieved in their compressed form (link to PR here). I think this would be a really valuable addition to rust-embed as well. Would you be open to supporting something similar?

Peter John

unread,
May 12, 2026, 10:08:19 AM (11 days ago) May 12
to rust-embed-devs
Hi Morisset,

Yep seems like a good addition if you don't need to decompress the data.
I guess it would be simple as just a version bump for the include-flate library?

Regards,
Peter

Hugues Morisset

unread,
May 12, 2026, 10:22:25 AM (11 days ago) May 12
to rust-embed-devs
Hi, 
Yes a version bump and a way to get the data compressed and the compression algorithm from `rust_embed::EmbeddedFile`.

Both are available in the IFlate struct https://github.com/SOF3/include-flate/blob/master/src/lib.rs#L148

Would you like me to send you a patch?

Regards,
Hugues

Hugues Morisset

unread,
May 12, 2026, 11:26:15 AM (11 days ago) May 12
to rust-embed-devs
For some reasons, I fail to clone the git repository

```
git clone https://pyrossh.dev/repos/remote-monitor.git
Cloning into 'remote-monitor'...
remote: Not Found
fatal: repository 'https://pyrossh.dev/repos/remote-monitor.git/' not found
```

Peter John

unread,
May 13, 2026, 8:03:27 AM (10 days ago) May 13
to rust-embed-devs
Hi Morisset,

I recently moved my website and s3 buckets to cloudflare and trying to get the git repos sorted, getting some errors even after uploading the repo. I will let you know once its fixed.

Regards,
Peter

Peter John

unread,
May 15, 2026, 4:40:51 AM (9 days ago) May 15
to rust-embed-devs
Hi Morisset,

I've updated the git clone url now to https://git.pyrossh.dev/rust-embed.git. Have updated on the website as well.
It seems cloudflare is having issues with HTTP/2 and git, I will file an issue with them to resolve it, but for now the git clone command needs to use HTTP/1.1 version.

GIT_CONFIG_PARAMETERS="'http.version=HTTP/1.1'" git clone https://git.pyrossh.dev/rust-embed.git

Regards,
Peter
Reply all
Reply to author
Forward
0 new messages