Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b9c56a3
Add zstd lib files to the repo
rzikm Sep 3, 2025
86278f2
Link zstd to System.IO.Compression.Native
rzikm Sep 3, 2025
273379b
Skeleton implementation
rzikm Sep 4, 2025
2791971
Export native zstd symbols
rzikm Sep 8, 2025
d74ee1a
ZDictionary creation
rzikm Sep 8, 2025
7cb359f
ZStandardEncoder
rzikm Sep 8, 2025
5171b63
ZStandardDecoder
rzikm Sep 8, 2025
69a625c
Roundtrip tests
rzikm Sep 8, 2025
18a78a0
Dictionary lifetime management
rzikm Sep 8, 2025
0637272
Fix test failures
rzikm Sep 9, 2025
5bca877
minor fix
rzikm Sep 9, 2025
392e185
Fix unit tests
rzikm Sep 10, 2025
751472d
Minor changes
rzikm Sep 10, 2025
fcd9576
move strings to resx
rzikm Sep 11, 2025
5cb2d4d
Change capitalization to Zstandard
rzikm Sep 22, 2025
f1e808f
Add support for Zstandard to System.IO.Compression
rzikm Sep 22, 2025
5853f81
Add ctor overloads
rzikm Sep 22, 2025
376a91c
Fix build on Linux
rzikm Sep 24, 2025
840c430
Fix runtime build on Windows
rzikm Sep 24, 2025
fe0e590
Fix build on tvos
rzikm Sep 25, 2025
a97e9cb
Fix AoT builds
rzikm Sep 26, 2025
33ad03d
Fix Android builds
rzikm Sep 26, 2025
e26ad84
More flexible options
rzikm Sep 30, 2025
70db33b
Add ReferencePrefix
rzikm Sep 30, 2025
3494510
Fix tests
rzikm Sep 30, 2025
e91e783
Add finalizer test
rzikm Sep 30, 2025
3fb7fc1
fixup! Add ReferencePrefix
rzikm Sep 30, 2025
358fb23
fixup! More flexible options
rzikm Sep 30, 2025
72a6447
Add ability to specify max window during decompression
rzikm Sep 30, 2025
8c707e4
Minor changes
rzikm Oct 3, 2025
6336b91
Use ZSTD_decompressBound
rzikm Oct 3, 2025
0d8c6a7
Update src/native/external/zstd-version.txt
rzikm Oct 6, 2025
461f707
fixup! Use ZSTD_decompressBound
rzikm Nov 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions THIRD-PARTY-NOTICES.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,41 @@ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWIS
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

License notice for zstd
-----------------------

https://github.com/facebook/zstd/blob/dev/LICENSE

BSD License

For Zstandard software
Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name Facebook, nor Meta, nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

License notice for fmtlib/fmt
-------------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ The .NET Foundation licenses this file to you under the MIT license.
<UseSystemZlib Condition="'$(UseSystemZlib)' == '' and !Exists('$(IlcFrameworkNativePath)libz.a')">true</UseSystemZlib>
<!-- Use libbrotlicommon.a as the sentinel for the three brotli libs. -->
<UseSystemBrotli Condition="'$(UseSystemBrotli)' == '' and !Exists('$(IlcFrameworkNativePath)libbrotlicommon.a')">true</UseSystemBrotli>
<UseSystemZstd Condition="'$(UseSystemZstd)' == '' and !Exists('$(IlcFrameworkNativePath)libzstd.a')">true</UseSystemZstd>

<FullRuntimeName>libRuntime.WorkstationGC</FullRuntimeName>
<FullRuntimeName Condition="'$(ServerGarbageCollection)' == 'true' or '$(IlcLinkServerGC)' == 'true'">libRuntime.ServerGC</FullRuntimeName>
Expand Down Expand Up @@ -178,6 +179,11 @@ The .NET Foundation licenses this file to you under the MIT license.
<NativeLibrary Include="$(IlcFrameworkNativePath)libbrotlicommon.a" />
</ItemGroup>

<ItemGroup>
<!-- zstd must be added after System.IO.Compression.Native, order matters. -->
<NativeLibrary Condition="'$(UseSystemZstd)' != 'true'" Include="$(IlcFrameworkNativePath)libzstd.a" />
</ItemGroup>

<ItemGroup Condition="'$(StaticICULinking)' == 'true' and '$(NativeLib)' != 'Static' and '$(InvariantGlobalization)' != 'true'">
<NativeLibrary Include="$(IntermediateOutputPath)libs/System.Globalization.Native/build/libSystem.Globalization.Native.a" />
<DirectPInvoke Include="System.Globalization.Native" />
Expand Down Expand Up @@ -217,6 +223,7 @@ The .NET Foundation licenses this file to you under the MIT license.
<NativeSystemLibrary Include="swiftFoundation" Condition="'$(_IsApplePlatform)' == 'true'" />
<NativeSystemLibrary Include="z" Condition="'$(UseSystemZlib)' == 'true'" />
<NativeSystemLibrary Include="brotlienc;brotlidec;brotlicommon" Condition="'$(UseSystemBrotli)' == 'true'" />
<NativeSystemLibrary Include="zstd" Condition="'$(UseSystemZstd)' == 'true'" />
<NativeSystemLibrary Include="rt" Condition="'$(_IsApplePlatform)' != 'true' and '$(_linuxLibcFlavor)' != 'bionic'" />
<NativeSystemLibrary Include="log" Condition="'$(_linuxLibcFlavor)' == 'bionic'" />
<NativeSystemLibrary Include="icucore" Condition="'$(_IsApplePlatform)' == 'true'" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ The .NET Foundation licenses this file to you under the MIT license.
<NativeLibrary Include="$(IlcSdkPath)brotlicommon$(LibFileExt)" />
<NativeLibrary Include="$(IlcSdkPath)brotlienc$(LibFileExt)" />
<NativeLibrary Include="$(IlcSdkPath)brotlidec$(LibFileExt)" />
<NativeLibrary Include="$(IlcSdkPath)zstd_static$(LibFileExt)" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@
<PlatformManifestFileEntry Include="brotlienc.lib" IsNative="true" />
<PlatformManifestFileEntry Include="brotlidec.lib" IsNative="true" />
<PlatformManifestFileEntry Include="brotlicommon.lib" IsNative="true" />
<!-- zstd-specific files -->
<PlatformManifestFileEntry Include="libzstd.a" IsNative="true" />
<PlatformManifestFileEntry Include="zstd_static.lib" IsNative="true" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading
Loading