Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
5196843
wip
yowl Jul 28, 2025
91488cf
pass simple-import-params test
yowl Aug 2, 2025
853e8d6
Merge remote-tracking branch 'origin/main' into csharp-async-simple-pr
yowl Aug 2, 2025
48ebbaa
tidy for PR
yowl Aug 2, 2025
cd60ad3
fmt
yowl Aug 2, 2025
271c689
Rremove extra test
yowl Aug 2, 2025
4908ff4
remove sln
yowl Aug 2, 2025
bd7f954
exclude failing tests
yowl Aug 2, 2025
d924d30
remove vscode files
yowl Aug 2, 2025
8ce6005
format
yowl Aug 2, 2025
3850a63
from share-nuget
yowl Aug 2, 2025
c2286ba
Merge branch 'csharp-async-simple-pr' into csharp-async-simple
yowl Aug 2, 2025
3d80e51
pass simple test
yowl Aug 14, 2025
c2f99f0
Add some todos, split the interop code up properly
yowl Aug 14, 2025
6858ac5
revert code output location change
yowl Aug 15, 2025
3056aff
Merge branch 'csharp-async-simple-pr' into csharp-future-simple
yowl Aug 15, 2025
7817692
pass a bit more test
yowl Aug 17, 2025
88cb2bd
pass simple future test
yowl Aug 20, 2025
e9c556a
tidy
yowl Aug 20, 2025
f09aa69
Merge remote-tracking branch 'origin/main' into csharp-future-simple
yowl Aug 20, 2025
ef7e582
remove vscode files
yowl Aug 20, 2025
3bf2224
cargo fmt
yowl Aug 20, 2025
88ccef3
Merge branch 'csharp-future-simple' into csharp-future-simple-vsc
yowl Aug 20, 2025
ffa5836
add "exports."
yowl Aug 21, 2025
1d707e0
Merge branch 'main' into csharp-future-simple-vsc
yowl Nov 3, 2025
ea39e0b
split imports and exports, common world types, WIP
yowl Nov 5, 2025
056ef0f
group resource interop funcs to a resource class
yowl Nov 25, 2025
8a4dd31
add resource name into classes
yowl Nov 27, 2025
5cf5443
cargo fmt
yowl Nov 27, 2025
54b5a6d
disable the futures test for c#
yowl Nov 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
383 changes: 383 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,383 @@
{
"version": "0.2.0",
"configurations": [


{
"name": "Run wit-bindgen test",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/aarch64-pc-windows-msvc/debug/wit-bindgen.exe",
"args": [
"test",
"--artifacts",
".\\target\\artifacts",
"--languages",
"csharp",
".\\tests\\codegen\\futures.wit"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"

},
{
"name": "Run wit-bindgen codegen csharp futures.wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"csharp",
".\\tests\\codegen\\futures.wit",
"--world",
"%the-futures",
"--out-dir",
".\\target\\artifacts\\codegen\\csharp\\futures.wit\\bindings",
"--runtime=native-aot",
"--generate-stub"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"

},
{
"name": "Run wit-bindgen codegen csharp wasi-filesystem.wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"csharp",
".\\tests\\codegen\\wasi-filesystem\\wit",
"--world",
"%imports",
"--out-dir",
".\\target\\artifacts\\codegen\\csharp\\wasi-filesystem\\bindings",
"--runtime=native-aot",
"--generate-stub"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"

},
{
"name": "Run wit-bindgen codegen csharp async-trait-function.wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"csharp",
".\\tests\\codegen\\async-trait-function.wit",
"--world",
"%core",
"--out-dir",
".\\target\\artifacts\\codegen\\csharp\\async-trait-function.wit\\bindings",
"--runtime=native-aot",
"--generate-stub"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"

},
{
"name": "Run wit-bindgen codegen csharp issue573.wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"csharp",
".\\tests\\codegen\\issue573.wit",
"--world",
"%types-example",
"--out-dir",
".\\target\\artifacts\\codegen\\csharp\\issue573.wit\\bindings",
"--runtime=native-aot",
"--generate-stub"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"
},
{
"name": "Run wit-bindgen codegen csharp return-resource-from-export.wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"csharp",
".\\tests\\codegen\\return-resource-from-export.wit",
"--world",
"%foo",
"--out-dir",
".\\target\\artifacts\\codegen\\csharp\\return-resource-from-export.wit\\bindings",
"--runtime=native-aot",
"--generate-stub"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"

},
{
"name": "Run wit-bindgen codegen csharp resource-alias.wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"csharp",
".\\tests\\codegen\\resource-alias.wit",
"--world",
"%resources",
"--out-dir",
".\\target\\artifacts\\codegen\\csharp\\resource-alias.wit\\bindings",
"--runtime=native-aot",
"--generate-stub"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"

},
{
"name": "Run wit-bindgen codegen csharp variants-unioning-types.wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"csharp",
".\\tests\\codegen\\variants-unioning-types.wit",
"--world",
"%a",
"--out-dir",
".\\target\\artifacts\\codegen\\csharp\\variants-unioning-types.wit\\bindings",
"--runtime=native-aot",
"--generate-stub"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"

},
{
"name": "Run wit-bindgen codegen csharp import-export-same-func.wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"csharp",
".\\tests\\codegen\\import-export-same-func.wit",
"--world",
"%my-world",
"--out-dir",
".\\target\\artifacts\\codegen\\csharp\\import-export-same-func.wit\\bindings",
"--runtime=native-aot",
"--generate-stub"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"

},
{
"name": "Run wit-bindgen codegen csharp name5wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"csharp",
".\\tests\\codegen\\same-names5.wit",
"--world",
"%name5",
"--out-dir",
".\\target\\artifacts\\codegen\\csharp\\same-names5.wit\\bindings",
"--runtime=native-aot",
"--generate-stub"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"

},
{
"name": "Run wit-bindgen codegen csharp flags",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"csharp",
".\\tests\\codegen\\flags.wit",
"--world",
"%the-flags",
"--out-dir",
".\\target\\artifacts\\codegen\\csharp\\flags.wit\\bindings",
"--runtime=native-aot",
"--generate-stub"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"

},
{
"name": "Run wit-bindgen codegen csharp import_export_func",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"csharp",
".\\tests\\codegen\\import_export_func.wit",
"--world",
"%foo",
"--out-dir",
".\\target\\artifacts\\codegen\\csharp\\import_export_func.wit\\bindings",
"--runtime=native-aot",
"--generate-stub"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"

},

{
"name": "Run wit-bindgen codegen csharp async-simple-params-results.wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"csharp",
".\\tests\\codegen\\async-simple-params-results.wit",
"--world",
"%test",
"--out-dir",
".\\target\\artifacts\\codegen\\csharp\\async-simple-params-results",
"--runtime=native-aot",
"--generate-stub"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"
},
{
"name": "Run wit-bindgen codegen csharp go_params.wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"csharp",
".\\tests\\codegen\\go_params.wit",
"--world",
"%go-params",
"--out-dir",
".\\target\\artifacts\\codegen\\csharp\\go_params.wit\\bindings",
"--runtime=native-aot",
"--generate-stub"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"
},
{
"name": "Run wit-bindgen codegen C async-simple-params-results.wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"c",
".\\tests\\codegen\\async-simple-params-results.wit",
"--world",
"%test",
"--out-dir",
".\\target\\artifacts\\codegen\\c\\async-simple-params-results",
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build"
},
{
"name": "Run wit-bindgen runtime C# simple-future.wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"test",
"--languages",
"csharp",
".\\tests\\runtime-async\\async\\simple-future",
"--artifacts",
".\\target\\artifacts\\codegen\\csharp\\simple-future",
"--rust-wit-bindgen-path",
".\\crates\\guest-rust",
"--runner",
"wasmtime -W component-model-async",
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build",
"environment": [
{
"name": "WASI_SDK_PATH",
"value": "c:\\github\\wasi-sdk25"
},
{
"name": "RUST_LOG",
"value": "debug"
}
]
},
{
"name": "Run wit-bindgen runtime C# simple-import-params-results.wit",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/wit-bindgen.exe",
"args": [
"test",
"--languages",
"csharp",
".\\tests\\runtime-async\\async\\simple-import-params-results",
"--artifacts",
".\\target\\artifacts",
"--rust-wit-bindgen-path",
".\\crates\\guest-rust",
"--runner",
"wasmtime -W component-model-async",
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"stopAtEntry": false,
"preLaunchTask": "cargo build",
"environment": [
{
"name": "WASI_SDK_PATH",
"value": "c:\\github\\wasi-sdk25"
},
{
"name": "RUST_LOG",
"value": "debug"
}
]
}

],
"env": {
"RUST_BACKTRACE": "1"
}
}
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "cargo build",
"type": "shell",
"command": "cargo build",
"group": "build",
"problemMatcher": ["$rustc"]
}
]
}
Loading
Loading