LoroCs 1.18.0
dotnet add package LoroCs --version 1.18.0
NuGet\Install-Package LoroCs -Version 1.18.0
<PackageReference Include="LoroCs" Version="1.18.0" />
<PackageVersion Include="LoroCs" Version="1.18.0" />
<PackageReference Include="LoroCs" />
paket add LoroCs --version 1.18.0
#r "nuget: LoroCs, 1.18.0"
#:package LoroCs@1.18.0
#addin nuget:?package=LoroCs&version=1.18.0
#tool nuget:?package=LoroCs&version=1.18.0
loro-cs 
C# bindings for the loro CRDT library.
Note: The current bindings are very bare bones. We are happy to accept pull requests that help make the loro API more accessible and idiomatic for C# developers!
Overview
This project provides .NET (C#) bindings for the loro CRDT library, enabling cross-platform, high-performance collaborative data structures in .NET applications. It uses Rust for the core implementation and exposes a C#-friendly API via native interop.
Features
- Cross-platform: Supports Windows, Linux, and macOS (x64, x86, arm64)
- Modern .NET API for collaborative data structures
- Native performance via Rust FFI
- Distributed, real-time collaboration support
Getting Started
Prerequisites
- Platform support: Windows, Linux, or macOS (x64, x86, arm64)
Installation
The NuGet package includes the managed C# library and native binaries for all major platforms/architectures. Install via NuGet:
dotnet add package LoroCs
Usage Example
using LoroCs;
using LoroCs.Extensions;
// Example usage (API subject to change)
var doc = new LoroDoc();
doc.GetMap("root".ToLoroContainerIdLike());
Building from Source
Prerequisites
- Rust (stable) and the .NET SDK
- PowerShell 7 (
pwsh), which also runs on Linux and macOS
Bindings
Generate the C# bindings once, and again whenever loro-ffi changes:
pwsh scripts/generate-bindings.ps1
The script installs the pinned uniffi-bindgen-cs, builds the native library for your machine and writes LoroCs/LoroCs/Generated/loro.cs. The generated file is not committed.
C# Project
dotnet build LoroCs/LoroCs.slnx compiles the library and also writes the NuGet package. The package contains every native library found under artifacts/runtimes/<rid>/native/. CI fills that folder for all platforms. To include your local build, copy it there, for example:
New-Item -ItemType Directory -Force artifacts/runtimes/win-x64/native
Copy-Item loro-cs/target/release/loro.dll artifacts/runtimes/win-x64/native/
On Linux and macOS Cargo names the file libloro.so or libloro.dylib. Copy it without the lib prefix.
Cross-Platform Builds
Cross-platform native builds and NuGet packaging are automated via GitHub Actions. See .github/workflows/build_and_publish.yml for details.
Contributing
Contributions are welcome! Please open issues or pull requests.
License
This project is licensed under the MIT License. See LICENSE for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.18.0 | 107 | 11/18/2026 |
| 1.17.1 | 423 | 10/29/2026 |
| 1.16.2 | 180 | 9/24/2026 |
| 1.16.0 | 246 | 9/9/2026 |
| 1.13.9 | 191 | 8/10/2026 |
| 1.13.7 | 151 | 7/20/2026 |
| 1.13.6 | 156 | 6/22/2026 |
| 1.12.0 | 141 | 5/13/2026 |
| 1.11.2 | 126 | 4/24/2026 |
| 1.10.3 | 530 | 12/9/2025 |
| 1.10.1 | 645 | 12/1/2025 |
| 1.10.0 | 647 | 12/1/2025 |
| 1.8.1 | 257 | 9/24/2025 |
| 1.6.0 | 252 | 9/2/2025 |
| 1.5.11 | 521 | 7/25/2025 |
| 1.5.11-alpha.2 | 595 | 7/23/2025 |
| 1.5.10 | 635 | 7/22/2025 |
| 1.5.9 | 252 | 6/23/2025 |
| 1.5.9-beta.4 | 210 | 6/23/2025 |
| 1.5.9-beta.3 | 200 | 6/23/2025 |