15 Commits

Author SHA1 Message Date
Pekka Enberg
dadff8df16 bindings/dotnet: rename iOS sync dylib to the public sdk kit name
Every native target builds turso_sync_sdk_kit and then renames the output
to the public libturso_sdk_kit name, but the two iOS targets skipped the
rename while IOS_DYLIB_FILE pointed at the sync name. The publish
workflow only uploads libturso_sdk_kit.*, so the sync dylib never left
the iOS build jobs and XCFramework packaging died on a missing file.

The iOS artifacts were not empty: they carried the libturso_sdk_kit.dylib
that cargo builds incidentally for the dependency crate, which has no
sync ABI symbols. Matching the other platforms makes the uploaded file
the one that was actually built.
2026-08-29 13:00:20 +03:00
awakecoding
0e4834af97 bindings/dotnet: expose native sync ABI
Expose the existing Rust sync SDK C ABI through Turso.Raw with exact native layouts, SafeHandle ownership, and low-level operation and I/O wrappers.

Build the combined sync payload while retaining the public turso_sdk_kit filenames and NuGet RID layout.

Tests: cargo test -p turso_sync_sdk_kit --lib; focused Turso.Raw build and Turso.Tests sync/raw tests; debug NuGet package layout inspection
2026-08-26 09:17:02 -04:00
Marc-André Moreau
993e8218fb bindings/dotnet: split NuGet runtime packages
Separate the SQLite provider facade from shared managed interop and precompiled native runtime packages. Keep the provider package focused on the SQLite API, move shared NativeAOT and platform integration into neutral runtime packages, and update packaging, samples, documentation, and CI for the new dependency graph.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-08-04 10:14:58 -04:00
Marc-André Moreau
1e9754dcb2 bindings/dotnet: add HTTP client packages
Add managed clients for the Turso Platform API and serverless SQL-over-HTTP workloads.

Generate the Platform client during MSBuild from the pinned OpenAPI specification, keep generated artifacts out of version control, and use cross-platform generation paths.

Include package metadata, NuGet publishing integration, and regression coverage for Platform extensions plus Serverless transaction and lifecycle behavior.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-07-13 11:05:38 -04:00
Marc-André Moreau
a81d75ff71 dotnet: support NativeAOT static native linking
Package desktop static turso_sdk_kit archives as RID-specific NativeAOT companion packages and wire an opt-in buildTransitive target that lets NativeAOT consumers use DirectPInvoke instead of publishing a dynamic sidecar library.

Add a NativeAOT sample, validate the packed NuGet static-link path across supported desktop runtime identifiers, and keep the main Turso.Data.Sqlite package below nuget.org's package-size limit.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-07-08 11:03:32 -04:00
Marc-André Moreau
9aa442c680 Add Turso EF Core SQLite provider
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-24 18:11:42 -04:00
Marc-André Moreau
5632f30601 Add mobile NuGet native targets
Add Android native assets for all portable Android RIDs, package iOS as an XCFramework with device and arm64 simulator slices, and wire mobile assets into the .NET transitive build targets.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-19 11:19:47 -04:00
Marc-André Moreau
7869be78a6 Add .NET NuGet package publishing workflow
Build and package the .NET bindings as a single Turso.Data.Sqlite NuGet package. The package bundles the Turso.Data.Sqlite facade, the Turso-specific ADO.NET provider assembly, the raw interop assembly, and native SDK-kit runtime assets for Linux, macOS, and Windows on x64 and arm64.

Add a push-triggered dry-run publishing workflow with native build jobs, artifact collection, gated NuGet publishing, and multi-targeted managed assets for net8.0, net9.0, and net10.0.

Centralize .NET package versioning in Directory.Build.props and wire scripts/update-version.py so NuGet versions stay aligned with the existing Turso release process.

Set managed assembly metadata without appending source revisions to ProductVersion, and add Windows VERSIONINFO metadata for turso_sdk_kit.dll.

Update project layout, README, examples, tests, and build scripts to match the single-package model.

Improve provider-replacement compatibility by making SqliteCommand.Prepare() safe for multi-statement batches, materializing declared GUID/UNIQUEIDENTIFIER values as Guid, and accepting common compatibility connection-string keywords.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-12 08:09:23 -04:00
Marc-André Moreau
2d82c65b2e Add SQLite-compatible .NET bindings
Introduce phase-1 .NET support for Turso local databases with NuGet-ready managed packages and a SQLite-compatible facade for migration-oriented users.

This adds the ADO.NET provider surface, `Turso.Data.Sqlite` compatibility types, package metadata, tests, and native asset packaging. The raw interop layer now P/Invokes the shared `turso_sdk_kit` C ABI directly instead of maintaining a bespoke Rust cdylib under `bindings/dotnet/rs_src`.

Advanced SQLite APIs for managed scalar functions, aggregates, collations, and extension loading are intentionally exposed but report that Turso core managed extension support is required. The core implementation is split to a separate PR so this branch stays focused on phase-1 .NET bindings.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-19 10:39:38 -04:00
Dmitriy
aafa41dd4c Add publish workflow 2025-12-03 12:23:11 +04:00
Dmitriy
54510c3535 Build different targets to different directories 2025-12-03 12:23:11 +04:00
Dmitriy
c02ed68ebd Add publish command 2025-12-03 12:23:11 +04:00
Dmitriy
0861b6aa4f Add support for linux and macos 2025-12-03 12:23:11 +04:00
Dmitriy
7d5412b5dc Add benchmark run 2025-12-03 12:23:11 +04:00
Dmitriy
ff75ff766a Add dotnet bindings 2025-12-03 12:23:10 +04:00