[PR #723] [MERGED] Adds zstd (zstandard) support to zip/zipx and 7zip #1183

Open
opened 2026-01-29 22:19:23 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/adamhathcock/sharpcompress/pull/723
Author: @Nanook
Created: 2/2/2023
Status: Merged
Merged: 6/12/2023
Merged by: @adamhathcock

Base: masterHead: fixes-zstd


📝 Commits (2)

  • 92df1ec ZStandard support added to zip/zipx (WinZip) and 7zip (mcmilk 7zip)
  • 99e99c1 Merge branch 'master' into fixes-zstd

📊 Changes

13 files changed (+73 additions, -39 deletions)

View changed files

📝 src/SharpCompress/Common/Zip/ZipCompressionMethod.cs (+1 -0)
📝 src/SharpCompress/Common/Zip/ZipFilePart.cs (+5 -0)
📝 src/SharpCompress/Compressors/LZMA/Registry.cs (+4 -0)
📝 src/SharpCompress/SharpCompress.csproj (+42 -39)
📝 tests/SharpCompress.Test/SevenZip/SevenZipArchiveTests.cs (+21 -0)
tests/TestArchives/Archives/7Zip.ZSTD.7z (+0 -0)
tests/TestArchives/Archives/7Zip.ZSTD.Split.7z.001 (+0 -0)
tests/TestArchives/Archives/7Zip.ZSTD.Split.7z.002 (+0 -0)
tests/TestArchives/Archives/7Zip.ZSTD.Split.7z.003 (+0 -0)
tests/TestArchives/Archives/7Zip.ZSTD.Split.7z.004 (+0 -0)
tests/TestArchives/Archives/7Zip.ZSTD.Split.7z.005 (+0 -0)
tests/TestArchives/Archives/7Zip.ZSTD.Split.7z.006 (+0 -0)
tests/TestArchives/Archives/WinZip27_ZSTD.zipx (+0 -0)

📄 Description

Zstandard zips can be created with winzip. Zstandard 7zips can be created with 7zip here: https://github.com/mcmilk/7-Zip-zstd

This uses the nuget package from this git repo: https://github.com/oleg-st/ZstdSharp

As this PR uses an external nuget reference, I'm submitting it for reference. Should the zstd code be imported to SharpCompress?

Thanks.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/adamhathcock/sharpcompress/pull/723 **Author:** [@Nanook](https://github.com/Nanook) **Created:** 2/2/2023 **Status:** ✅ Merged **Merged:** 6/12/2023 **Merged by:** [@adamhathcock](https://github.com/adamhathcock) **Base:** `master` ← **Head:** `fixes-zstd` --- ### 📝 Commits (2) - [`92df1ec`](https://github.com/adamhathcock/sharpcompress/commit/92df1ecd5f7579a88a1c5a7d30744a091de95b2a) ZStandard support added to zip/zipx (WinZip) and 7zip (mcmilk 7zip) - [`99e99c1`](https://github.com/adamhathcock/sharpcompress/commit/99e99c1ccdc15409bc9437e91ed37d90434ce38e) Merge branch 'master' into fixes-zstd ### 📊 Changes **13 files changed** (+73 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `src/SharpCompress/Common/Zip/ZipCompressionMethod.cs` (+1 -0) 📝 `src/SharpCompress/Common/Zip/ZipFilePart.cs` (+5 -0) 📝 `src/SharpCompress/Compressors/LZMA/Registry.cs` (+4 -0) 📝 `src/SharpCompress/SharpCompress.csproj` (+42 -39) 📝 `tests/SharpCompress.Test/SevenZip/SevenZipArchiveTests.cs` (+21 -0) ➕ `tests/TestArchives/Archives/7Zip.ZSTD.7z` (+0 -0) ➕ `tests/TestArchives/Archives/7Zip.ZSTD.Split.7z.001` (+0 -0) ➕ `tests/TestArchives/Archives/7Zip.ZSTD.Split.7z.002` (+0 -0) ➕ `tests/TestArchives/Archives/7Zip.ZSTD.Split.7z.003` (+0 -0) ➕ `tests/TestArchives/Archives/7Zip.ZSTD.Split.7z.004` (+0 -0) ➕ `tests/TestArchives/Archives/7Zip.ZSTD.Split.7z.005` (+0 -0) ➕ `tests/TestArchives/Archives/7Zip.ZSTD.Split.7z.006` (+0 -0) ➕ `tests/TestArchives/Archives/WinZip27_ZSTD.zipx` (+0 -0) </details> ### 📄 Description Zstandard zips can be created with winzip. Zstandard 7zips can be created with 7zip here: https://github.com/mcmilk/7-Zip-zstd This uses the nuget package from this git repo: https://github.com/oleg-st/ZstdSharp As this PR uses an external nuget reference, I'm submitting it for reference. Should the zstd code be imported to SharpCompress? Thanks. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 22:19:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1183