mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-07-26 20:11:43 -04:00
927d4c4020
Re-opened from #4289 which was accidentally merged into its base branch (`rekhoff/csharp-module-defs-v10-no-et`) instead of `master`. This is the same PR, now correctly targeting `master`. --- Original description from #4289: This PR migrates the C# SDK client path to WebSocket v2 semantics and aligns behavior with the Rust SDK direction for 2.0, including follow-on fixes in generation/tests. See #4289 for full description. --------- Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io> Co-authored-by: Jason Larabie <jason@clockworklabs.io> Co-authored-by: clockwork-labs-bot <clockwork-labs-bot@users.noreply.github.com>
16 lines
524 B
Batchfile
16 lines
524 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set "STDB_PATH=%1"
|
|
set "SDK_PATH=%~dp0.."
|
|
|
|
cargo run --manifest-path %STDB_PATH%/crates/client-api-messages/Cargo.toml --example get_ws_schema_v2 | ^
|
|
cargo run --manifest-path %STDB_PATH%/crates/cli/Cargo.toml -- generate -l csharp --namespace SpacetimeDB.ClientApi ^
|
|
--module-def ^
|
|
-o %SDK_PATH%/src/SpacetimeDB/ClientApi/.output
|
|
|
|
move "%SDK_PATH%\src\SpacetimeDB\ClientApi\.output\Types\*" "%SDK_PATH%\src\SpacetimeDB\ClientApi"
|
|
rmdir /s /q "%SDK_PATH%\src\SpacetimeDB\ClientApi\.output"
|
|
|
|
endlocal
|