Native runtime assets for RocksDb.Net.
This package contains platform-specific native libraries required by RocksDB when used from .NET.
All native runtime binaries included in this package are automatically compiled from source using GitHub Actions workflows. This ensures that the binaries for all supported targets—including Windows, Linux (glibc and musl), and macOS across both x64 and ARM64 architectures—are built in a transparent, reproducible, and consistent environment.
The native librocksdb binaries in this package are based on the upstream RocksDB project maintained by Facebook and contributors:
This package redistributes native RocksDB runtime binaries for use with the .NET package RocksDb.Net. All rights to RocksDB belong to its respective authors and maintainers. This package is an independent distribution focused on .NET runtime asset packaging.
RocksDB is built here with Snappy, zlib, LZ4 and Zstandard support, and those compression libraries ship alongside it, so the package redistributes them too. Every one is built from unmodified upstream sources through vcpkg. Attribution and the full licence text for all five are in THIRD-PARTY-NOTICES.md.
RocksDb.Net.Runtimes is a runtime-asset NuGet package. It ships native binaries under runtimes/<RID>/native so the .NET runtime can load RocksDB on each supported operating system and architecture.
In most scenarios, you should install RocksDb.Net, which will reference this package for you.
win-x86win-x64win-arm64linux-x64linux-arm64linux-musl-x64linux-musl-arm64osx-x64osx-arm64
Depending on the target runtime, the package includes:
- RocksDB shared library
- lz4
- snappy
- zlib
- zstd
Install the main managed package (recommended):
dotnet add package RocksDb.NetInstall this package directly only if you need explicit control over native asset packaging:
dotnet add package RocksDb.Net.Runtimes- Native assets are resolved by Runtime Identifier (RID).
- For self-contained publishing, set an appropriate RID (for example
win-x64,linux-x64, orosx-arm64). - If a native load error occurs, verify that your published output contains the matching
runtimes/<RID>/nativefolder.
- RocksDb.Net: https://github.com/zcsizmadia/RocksDb.Net
- This repository: https://github.com/zcsizmadia/RocksDb.Net.Runtimes
- Facebook RocksDB: https://github.com/facebook/rocksdb
The build scripts and packaging in this repository are MIT. See LICENSE.
The native libraries in the package are third-party software and carry their own terms. RocksDB is dual-licensed under the Apache 2.0 Licence and the GPLv2, and the package also ships the Snappy, zlib, LZ4 and Zstandard shared libraries under BSD and zlib terms.
See THIRD-PARTY-NOTICES.md for attribution and the licenses directory for the full text of each. Both are included in the package itself, not just in this repository.