Apache.OpenDAL 0.1.2

dotnet add package Apache.OpenDAL --version 0.1.2
                    
NuGet\Install-Package Apache.OpenDAL -Version 0.1.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Apache.OpenDAL" Version="0.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Apache.OpenDAL" Version="0.1.2" />
                    
Directory.Packages.props
<PackageReference Include="Apache.OpenDAL" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Apache.OpenDAL --version 0.1.2
                    
#r "nuget: Apache.OpenDAL, 0.1.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Apache.OpenDAL@0.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Apache.OpenDAL&version=0.1.2
                    
Install as a Cake Addin
#tool nuget:?package=Apache.OpenDAL&version=0.1.2
                    
Install as a Cake Tool

Apache OpenDAL™ .NET Binding

alternate text is missing from this package README image

This package provides a native .NET binding for Apache OpenDAL™, a data access layer that allows you to access various storage services in a unified way.

We release the OpenDAL .NET binding independently of the opendal crate (Rust core). For updates and compatibility, use the .NET binding version instead of the opendal crate version.

Installation

This binding is not yet published to NuGet. Build it from source — you need the .NET SDK for net8.0 or net10.0 and a Rust toolchain for the native library:

cargo build
dotnet build

Quickstart

using OpenDAL;
using System.Text;

// Configure a service, then build an operator from it.
using var op = new Operator("memory");

// The same verbs work on every service.
op.Write("hello.txt", Encoding.UTF8.GetBytes("Hello, World!"));
var bytes = op.Read("hello.txt");
Console.WriteLine(Encoding.UTF8.GetString(bytes));
Console.WriteLine(op.Stat("hello.txt").ContentLength);

To use a real backend, change the scheme and pass its configuration — the operations stay identical:

using var op = new Operator("s3", new Dictionary<string, string>
{
    ["bucket"] = "your_bucket",
    ["region"] = "your_region",
});

OpenDAL also has a first-class async API — every operation has an …Async counterpart. See Getting started and Connecting to your storage for the full guide.

Contributing

To build and test the binding from source:

cargo build
dotnet build
dotnet test

For a complete guide on building, testing, and contributing, see the project's CONTRIBUTING guide.

License and Trademarks

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Apache OpenDAL, OpenDAL, and Apache are either registered trademarks or trademarks of the Apache Software Foundation.

Third-party software

Compiled distributions include the following Mozilla Public License 2.0 components. Their source code is available from the linked project pages:

The distribution includes the MPL-2.0 text in LICENSE-MPL-2.0.txt.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.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
0.1.2 59 8/20/2026