SpacetimeDB.Runtime 0.6.4

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package SpacetimeDB.Runtime --version 0.6.4
                    
NuGet\Install-Package SpacetimeDB.Runtime -Version 0.6.4
                    
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="SpacetimeDB.Runtime" Version="0.6.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SpacetimeDB.Runtime" Version="0.6.4" />
                    
Directory.Packages.props
<PackageReference Include="SpacetimeDB.Runtime" />
                    
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 SpacetimeDB.Runtime --version 0.6.4
                    
#r "nuget: SpacetimeDB.Runtime, 0.6.4"
                    
#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 SpacetimeDB.Runtime@0.6.4
                    
#: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=SpacetimeDB.Runtime&version=0.6.4
                    
Install as a Cake Addin
#tool nuget:?package=SpacetimeDB.Runtime&version=0.6.4
                    
Install as a Cake Tool

SpacetimeDB.Runtime

This project contains the core SpacetimeDB SATS typesystem, attributes for the codegen as well as runtime bindings for SpacetimeDB WebAssembly modules.

The runtime bindings are currently implementing via Wasi.Sdk package, which is a .NET implementation of the WASI standard. This is likely to change in the future.

While not really documented, it allows to build raw WebAssembly modules with custom bindings as well, which is what we're using here. The process is somewhat complicated, but here are the steps:

  • bindings.c declares raw C bindings to the SpacetimeDB FFI imports and marks them with attributes like __attribute__((import_module("spacetime"), import_name("_insert"))) that make them WebAssembly imports. (unfortunately, function name duplication is currently unavoidable)
  • bindings.c implements a bunch of Mono-compatible wrappers that convert between Mono types and raw types expected by the SpacetimeDB FFI and invoke corresponding raw bindings.
  • Runtime.cs declares corresponding functions with compatible signatures for Mono-compatible wrappers to attach to. It marks them all with [MethodImpl(MethodImplOptions.InternalCall)].
  • bindings.c attaches all those Mono-compatible wrappers to their C# declarations in a mono_stdb_attach_bindings function.
  • bindings.c adds FFI-compatible exports that search for a method by assembly name, namespace, class name and a method name in the Mono runtime and invoke it. Those exports are marked with attributes like __attribute__((export_name("__call_reducer__"))) so that they're exported from Wasm by the linker.
  • Finally, bindings.c implements no-op shims for all the WASI APIs so that they're linked internally and not attempted to be imported from the runtime itself.

The result is a WebAssembly module FFI-compatible with SpacetimeDB and with no WASI imports, which is what we need.

Product 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 is compatible.  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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.3.0 1,144 8/1/2025
1.2.1 850 6/23/2025
1.2.0 243 6/17/2025
1.1.2 1,553 5/22/2025
1.1.1 1,755 4/22/2025
1.1.0 1,196 4/16/2025
1.0.1 808 3/15/2025
1.0.0 2,498 2/28/2025
1.0.0-rc3-hotfix3 98 1/24/2025
1.0.0-rc3-hotfix2 95 1/24/2025
1.0.0-rc3 115 1/14/2025
1.0.0-rc2 984 12/14/2024
1.0.0-rc1-hotfix1 107 11/12/2024
1.0.0-rc1 131 11/6/2024
0.12.0 985 10/4/2024
0.11.1 1,134 9/2/2024
0.11.0 965 8/6/2024
0.10.1 301 6/28/2024
0.10.0 173 6/13/2024
0.9.2 159 5/28/2024
0.9.0 159 5/22/2024
0.8.2 414 12/11/2023
0.8.2-naot-experimental 122 1/10/2024
0.8.1 181 12/7/2023
0.8.0 158 11/30/2023
0.7.2 216 10/11/2023
0.7.1 177 10/3/2023
0.7.0 310 9/12/2023
0.6.4 270 8/14/2023
0.6.3 229 8/8/2023
0.6.2 218 8/7/2023
0.6.1 261 8/2/2023
0.6.0 228 8/2/2023