Skip to content

Commit 6f489db

Browse files
authored
[C#] Add support for the ping pong test, bring support for futures that return strings, i.e. types returned via pointers. (#1606)
* add support for the ping-pong test. Requires supporting futures that return strings. * address feedback, remove redundant parameters and duplicate Callback function * add example for regex
1 parent 9bda2f3 commit 6f489db

12 files changed

Lines changed: 631 additions & 145 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ ace
99
__pycache__
1010
crates/guest-rust/src/cabi_realloc.o
1111
wit_component
12+
13+
/wit-bindgen.sln

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/core/src/abi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ impl<'a, B: Bindgen> Generator<'a, B> {
12561256
// based on slightly different logic for the `task.return`
12571257
// intrinsic.
12581258
//
1259-
// Note that in the async import case teh code below deals with the CM function being lowered,
1259+
// Note that in the async import case the code below deals with the CM function being lowered,
12601260
// not the core function that is underneath that (i.e. func.result may be empty,
12611261
// where the associated core function underneath must have a i32 status code result)
12621262
let (lower_to_memory, async_flat_results) = match (async_, &func.result) {

crates/csharp/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ heck = { workspace = true }
2828
clap = { workspace = true, optional = true }
2929
anyhow = { workspace = true }
3030
indexmap = { workspace = true }
31+
regex = "1.12.3"
3132

3233
[features]
3334
default = ["aot"]

0 commit comments

Comments
 (0)