lune-org / lune

A standalone Luau runtime
https://lune-org.github.io/docs
Mozilla Public License 2.0
362 stars 85 forks source link

Support for .zip and .rar File Compression and Decompression #240

Closed RuizuKun-Dev closed 2 months ago

RuizuKun-Dev commented 2 months ago

I would like to request the addition of support for .zip and .rar file formats in Lune. These are widely used compression formats, and integrating support for them would significantly enhance Lune's utility

Proposed Features:

  1. Zipping Support:

    • Ability to compress files and directories into .zip and .rar formats
  2. Unzipping Support:

    • Ability to extract files and directories from .zip and .rar archives

Benefits:

RuizuKun-Dev commented 2 months ago

please correct me if this is outside of Lune's scope though, from my perspective i think it's not a bad idea to support this functionality however that is entirely up to maintainers and project owner

CompeyDev commented 2 months ago

I would like to request the addition of support for .zip and .rar file formats in Lune.

These are formats which involve archival, not just compression. serde.decompress supports only common compression formats. Archival formats are likely out of lune's scope and can usually be implemented in pure Luau.

RuizuKun-Dev commented 2 months ago

I would like to request the addition of support for .zip and .rar file formats in Lune.

These are formats which involve archival, not just compression. serde.decompress supports only common compression formats. Archival formats are likely out of lune's scope and can usually be implemented in pure Luau.

thank you for the clarification! can you please point me in the right direction for implementation in pure luau? thank you! 🙏🏻

CompeyDev commented 2 months ago

There aren't any Luau ones that I know of, but I did find a pure-lua one which you can add types to yourself.

See zzlib.

filiptibell commented 2 months ago

This is out of scope for Lune unfortunately, so I will be closing this