wit-bindgen-cli 0.57.1

CLI tool to generate bindings for WIT documents and the component model.
using System.Diagnostics;
using TestWorld.wit.Exports.test.resourceIntoInner;

namespace TestWorld.wit.Exports.test.resourceIntoInner
{
    public class ToTestExportsImpl : IToTestExports {
	public class Thing : IToTestExports.Thing, IToTestExports.IThing {
	    public string val;

	    public Thing(string v) {
		this.val = v;
	    }
	}
			
	public static void Test() {
	    // Unlike wasm.rs, this doesn't test anything interesting
	    // due there being no ownership semantics in C# (and also
	    // due to way the C# code generator lazily calls
	    // `[resource-new]thing` only as needed), but we go
	    // through the motions here anyway:
	    var text = "Jabberwocky";
	    Debug.Assert(new Thing(text).val == text);
	}
    }
}