Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f6df527
Add zstd lib files to the repo
rzikm Sep 3, 2025
eeed678
Link zstd to System.IO.Compression.Native
rzikm Sep 3, 2025
859489f
Skeleton implementation
rzikm Sep 4, 2025
9bfda23
Export native zstd symbols
rzikm Sep 8, 2025
0a462d7
ZDictionary creation
rzikm Sep 8, 2025
02445b1
ZStandardEncoder
rzikm Sep 8, 2025
9486a31
ZStandardDecoder
rzikm Sep 8, 2025
498679c
Roundtrip tests
rzikm Sep 8, 2025
7c55bd9
Dictionary lifetime management
rzikm Sep 8, 2025
f814302
Fix test failures
rzikm Sep 9, 2025
80a402d
minor fix
rzikm Sep 9, 2025
f699819
Fix unit tests
rzikm Sep 10, 2025
93ff709
Minor changes
rzikm Sep 10, 2025
644d937
move strings to resx
rzikm Sep 11, 2025
be7c3a0
Change capitalization to Zstandard
rzikm Sep 22, 2025
b4a55d1
Add support for Zstandard to System.IO.Compression
rzikm Sep 22, 2025
0e83dfa
Add ctor overloads
rzikm Sep 22, 2025
99bdbc4
Fix build on Linux
rzikm Sep 24, 2025
2321beb
Fix runtime build on Windows
rzikm Sep 24, 2025
9ad648d
Fix build on tvos
rzikm Sep 25, 2025
ca152b1
Fix AoT builds
rzikm Sep 26, 2025
29e394c
Fix Android builds
rzikm Sep 26, 2025
6ba7a82
More flexible options
rzikm Sep 30, 2025
6aca134
Add ReferencePrefix
rzikm Sep 30, 2025
df06e52
Fix tests
rzikm Sep 30, 2025
35d8645
Add finalizer test
rzikm Sep 30, 2025
3b597c4
fixup! Add ReferencePrefix
rzikm Sep 30, 2025
89e062d
fixup! More flexible options
rzikm Sep 30, 2025
dd927ae
Add ability to specify max window during decompression
rzikm Sep 30, 2025
d2c5748
Minor changes
rzikm Oct 3, 2025
e6b7211
Use ZSTD_decompressBound
rzikm Oct 3, 2025
83ce56a
Update src/native/external/zstd-version.txt
rzikm Oct 6, 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 @@ -1194,6 +1194,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 @@ -280,6 +280,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