Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
15 changes: 10 additions & 5 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@
<NoWarn>$(NoWarn);NU1507</NoWarn>

<!-- tool versions -->
<WasmToolsVersion>1.227.1</WasmToolsVersion>
<WacVersion>v0.6.1</WacVersion>
<PrebuiltWitBindgenVersion>0.41.0</PrebuiltWitBindgenVersion>
<PrebuildWkgVersion>0.10.0</PrebuildWkgVersion>
<!-- https://github.com/bytecodealliance/wasm-tools/releases -->
<WasmToolsVersion>1.239.0</WasmToolsVersion>
<!-- https://github.com/bytecodealliance/wac/releases -->
<WacVersion>v0.8.0</WacVersion>
<!-- https://github.com/bytecodealliance/wit-bindgen/releases -->
<PrebuiltWitBindgenVersion>0.46.0</PrebuiltWitBindgenVersion>
<!-- https://github.com/bytecodealliance/wasm-pkg-tools/releases -->
<PrebuildWkgVersion>0.11.0</PrebuildWkgVersion>

<!-- test artifacts -->
<WasmtimeVersion>30.0.2</WasmtimeVersion>
<!-- https://github.com/bytecodealliance/wasmtime/releases -->
<WasmtimeVersion>36.0.2</WasmtimeVersion>

</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<WitBindgenRuntime>native-aot</WitBindgenRuntime>

<!-- Keep this block all in sync manually, since URLs can be arbitrary -->
<WasiSdkVersion>24.0</WasiSdkVersion>
<!-- https://github.com/WebAssembly/wasi-sdk/releases -->
<WasiSdkVersion>27.0</WasiSdkVersion>
<WasiSdkUrl Condition="$([MSBuild]::IsOSPlatform('Windows'))">https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-$(WasiSdkVersion.Split(".")[0])/wasi-sdk-$(WasiSdkVersion)-x86_64-windows.tar.gz</WasiSdkUrl>
<WasiSdkUrl Condition="$([MSBuild]::IsOSPlatform('Linux'))">https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-$(WasiSdkVersion.Split(".")[0])/wasi-sdk-$(WasiSdkVersion)-x86_64-linux.tar.gz</WasiSdkUrl>
<WasiSdkUrl Condition="$([MSBuild]::IsOSPlatform('OSX'))">https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-$(WasiSdkVersion.Split(".")[0])/wasi-sdk-$(WasiSdkVersion)-x86_64-macos.tar.gz</WasiSdkUrl>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Generated by `wit-bindgen` 0.40.0. DO NOT EDIT!
// Generated by `wit-bindgen` 0.46.0. DO NOT EDIT!
// <auto-generated />
#nullable enable
using System.Runtime.InteropServices;

namespace MySimpleWorld {

public interface IMySimpleWorld {
Expand All @@ -11,7 +11,7 @@ public interface IMySimpleWorld {

public readonly struct None {}

[StructLayout(LayoutKind.Sequential)]
[global::System.Runtime.InteropServices.StructLayoutAttribute(global::System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly struct Result<TOk, TErr>
{
public readonly byte Tag;
Expand Down Expand Up @@ -45,7 +45,7 @@ public TOk AsOk
return (TOk)value;
}

throw new ArgumentException("expected k, got " + Tag);
throw new global::System.ArgumentException("expected k, got " + Tag);
}
}

Expand All @@ -58,7 +58,7 @@ public TErr AsErr
return (TErr)value;
}

throw new ArgumentException("expected Err, got " + Tag);
throw new global::System.ArgumentException("expected Err, got " + Tag);
}
}

Expand All @@ -70,11 +70,10 @@ public class Tags
}

namespace exports {
using System.Runtime.InteropServices;
public static class MySimpleWorld
{

[UnmanagedCallersOnly(EntryPoint = "get-number")]
[global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(EntryPoint = "get-number")]
public static unsafe int wasmExportGetNumber() {

int ret;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Generated by `wit-bindgen` 0.40.0. DO NOT EDIT!
// Generated by `wit-bindgen` 0.46.0. DO NOT EDIT!
// <auto-generated />
#nullable enable

#if !NET9_0_OR_GREATER
// temporarily add this attribute until it is available in dotnet 9
namespace System.Runtime.InteropServices
{
internal partial class WasmImportLinkageAttribute : Attribute {}
internal partial class WasmImportLinkageAttribute : global::System.Attribute {}
}
#endif
Loading