Skip to content

Commit 424caaf

Browse files
committed
- roll back WIT to 0_2_0
- bump wit-bindgen-cli to 0.30
1 parent fe4c88c commit 424caaf

23 files changed

+660
-662
lines changed

src/libraries/System.Net.Http/src/System.Net.Http.csproj

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -460,16 +460,16 @@
460460
<Reference Include="System.Threading.Thread" />
461461
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpHandler.cs" />
462462
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttp.cs" />
463-
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.clocks.v0_2_1.MonotonicClockInterop.cs" />
464-
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.http.v0_2_1.ITypes.cs" />
465-
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.http.v0_2_1.OutgoingHandlerInterop.cs" />
466-
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.http.v0_2_1.TypesInterop.cs" />
467-
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.io.v0_2_1.ErrorInterop.cs" />
468-
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IError.cs" />
469-
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.cs" />
470-
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IStreams.cs" />
471-
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.io.v0_2_1.PollInterop.cs" />
472-
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.io.v0_2_1.StreamsInterop.cs" />
463+
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.clocks.v0_2_0.MonotonicClockInterop.cs" />
464+
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.http.v0_2_0.ITypes.cs" />
465+
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.http.v0_2_0.OutgoingHandlerInterop.cs" />
466+
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.http.v0_2_0.TypesInterop.cs" />
467+
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.io.v0_2_0.ErrorInterop.cs" />
468+
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IError.cs" />
469+
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.cs" />
470+
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IStreams.cs" />
471+
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.io.v0_2_0.PollInterop.cs" />
472+
<Compile Include="System\Net\Http\WasiHttpHandler\WasiHttpWorld.wit.imports.wasi.io.v0_2_0.StreamsInterop.cs" />
473473
</ItemGroup>
474474

475475
<ItemGroup>

src/libraries/System.Net.Http/src/System/Net/Http/WasiHttpHandler/WasiHttp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by `wit-bindgen` 0.29.0. DO NOT EDIT!
1+
// Generated by `wit-bindgen` 0.30.0. DO NOT EDIT!
22
// <auto-generated />
33
#nullable enable
44
using System;

src/libraries/System.Net.Http/src/System/Net/Http/WasiHttpHandler/WasiHttpHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
using System.Threading;
1313
using System.Threading.Tasks;
1414
using WasiHttpWorld;
15-
using WasiHttpWorld.wit.imports.wasi.http.v0_2_1;
16-
using WasiHttpWorld.wit.imports.wasi.io.v0_2_1;
15+
using WasiHttpWorld.wit.imports.wasi.http.v0_2_0;
16+
using WasiHttpWorld.wit.imports.wasi.io.v0_2_0;
1717

1818
namespace System.Net.Http
1919
{
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Generated by `wit-bindgen` 0.29.0. DO NOT EDIT!
1+
// Generated by `wit-bindgen` 0.30.0. DO NOT EDIT!
22
// <auto-generated />
33
#nullable enable
44

@@ -11,13 +11,13 @@
1111
using System.Diagnostics;
1212
using System.Diagnostics.CodeAnalysis;
1313

14-
namespace WasiHttpWorld.wit.imports.wasi.clocks.v0_2_1
14+
namespace WasiHttpWorld.wit.imports.wasi.clocks.v0_2_0
1515
{
1616
internal static class MonotonicClockInterop {
1717

1818
internal static class NowWasmInterop
1919
{
20-
[DllImport("wasi:clocks/[email protected].1", EntryPoint = "now"), WasmImportLinkage]
20+
[DllImport("wasi:clocks/[email protected].0", EntryPoint = "now"), WasmImportLinkage]
2121
internal static extern long wasmImportNow();
2222

2323
}
@@ -32,7 +32,7 @@ internal static unsafe ulong Now()
3232

3333
internal static class ResolutionWasmInterop
3434
{
35-
[DllImport("wasi:clocks/[email protected].1", EntryPoint = "resolution"), WasmImportLinkage]
35+
[DllImport("wasi:clocks/[email protected].0", EntryPoint = "resolution"), WasmImportLinkage]
3636
internal static extern long wasmImportResolution();
3737

3838
}
@@ -47,31 +47,31 @@ internal static unsafe ulong Resolution()
4747

4848
internal static class SubscribeInstantWasmInterop
4949
{
50-
[DllImport("wasi:clocks/[email protected].1", EntryPoint = "subscribe-instant"), WasmImportLinkage]
50+
[DllImport("wasi:clocks/[email protected].0", EntryPoint = "subscribe-instant"), WasmImportLinkage]
5151
internal static extern int wasmImportSubscribeInstant(long p0);
5252

5353
}
5454

55-
internal static unsafe global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable SubscribeInstant(ulong when)
55+
internal static unsafe global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable SubscribeInstant(ulong when)
5656
{
5757
var result = SubscribeInstantWasmInterop.wasmImportSubscribeInstant(unchecked((long)(when)));
58-
var resource = new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable(new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable.THandle(result));
58+
var resource = new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable(new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable.THandle(result));
5959
return resource;
6060

6161
//TODO: free alloc handle (interopString) if exists
6262
}
6363

6464
internal static class SubscribeDurationWasmInterop
6565
{
66-
[DllImport("wasi:clocks/[email protected].1", EntryPoint = "subscribe-duration"), WasmImportLinkage]
66+
[DllImport("wasi:clocks/[email protected].0", EntryPoint = "subscribe-duration"), WasmImportLinkage]
6767
internal static extern int wasmImportSubscribeDuration(long p0);
6868

6969
}
7070

71-
internal static unsafe global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable SubscribeDuration(ulong when)
71+
internal static unsafe global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable SubscribeDuration(ulong when)
7272
{
7373
var result = SubscribeDurationWasmInterop.wasmImportSubscribeDuration(unchecked((long)(when)));
74-
var resource = new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable(new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_1.IPoll.Pollable.THandle(result));
74+
var resource = new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable(new global::WasiHttpWorld.wit.imports.wasi.io.v0_2_0.IPoll.Pollable.THandle(result));
7575
return resource;
7676

7777
//TODO: free alloc handle (interopString) if exists

0 commit comments

Comments
 (0)