From 89586a29f4fe26fc8e204b365060b5c22c858a03 Mon Sep 17 00:00:00 2001 From: Jason Larabie Date: Thu, 2 Apr 2026 12:34:09 -0700 Subject: [PATCH 1/8] Add the functionality to use NativeAOT-LLVM to build a P1 .wasm (core module) --- .../BSATN.Runtime/BSATN.Runtime.csproj | 5 + .../bindings-csharp/Runtime/Internal/FFI.cs | 33 +++++ crates/bindings-csharp/Runtime/Runtime.csproj | 10 +- crates/bindings-csharp/Runtime/bindings.c | 19 ++- .../Runtime/build/SpacetimeDB.Runtime.targets | 2 +- crates/cli/src/subcommands/init.rs | 52 ++++++-- crates/cli/src/tasks/csharp.rs | 120 +++++++++++------- .../Scripts/autogen/SpacetimeDBClient.g.cs | 2 +- .../server-csharp/StdbModule.csproj | 38 ++++++ modules/sdk-test-cs/sdk-test-cs.csproj | 5 +- .../regression-tests/client/client.csproj | 5 + .../procedure-client/client.csproj | 5 + .../republishing/client/client.csproj | 5 + .../server-initial/StdbModule.csproj | 38 ++++++ .../server-republish/StdbModule.csproj | 38 ++++++ .../regression-tests/server/StdbModule.csproj | 38 ++++++ 16 files changed, 349 insertions(+), 66 deletions(-) diff --git a/crates/bindings-csharp/BSATN.Runtime/BSATN.Runtime.csproj b/crates/bindings-csharp/BSATN.Runtime/BSATN.Runtime.csproj index d58dad4cde4..4f6afaa8dd6 100644 --- a/crates/bindings-csharp/BSATN.Runtime/BSATN.Runtime.csproj +++ b/crates/bindings-csharp/BSATN.Runtime/BSATN.Runtime.csproj @@ -15,6 +15,11 @@ + + netstandard2.1;net10.0 + $(DefineConstants);EXPERIMENTAL_WASM_AOT + +