Skip to content

Commit

Permalink
Merge pull request #2 from sunfishcode/main
Browse files Browse the repository at this point in the history
Update to the latest wit-bindgen.
  • Loading branch information
linclark authored Feb 7, 2023
2 parents 6601e10 + 58bca5e commit eafa66d
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: WebAssembly/wit-abi-up-to-date@v6
- uses: WebAssembly/wit-abi-up-to-date@v10
with:
wit-abi-tag: wit-abi-0.6.0
wit-abi-tag: wit-abi-0.7.0
24 changes: 24 additions & 0 deletions proposal-template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<h1>Import interface <code>proposal-interface-name</code></h1>
<h2>Types</h2>
<h2><a href="#api_type_one" name="api_type_one"></a> <a href="#api_type_one"><code>api-type-one</code></a>: record</h2>
<p>Short description</p>
<p>Explanation for developers using the API.</p>
<p>Size: 16, Alignment: 8</p>
<h3>Record Fields</h3>
<ul>
<li>
<p><a href="api_type_one.property1" name="api_type_one.property1"></a> <a href="#api_type_one.property1"><code>property1</code></a>: <code>u64</code></p>
</li>
<li>
<p><a href="api_type_one.property2" name="api_type_one.property2"></a> <a href="#api_type_one.property2"><code>property2</code></a>: <code>string</code></p>
</li>
</ul>
<h2>Functions</h2>
<hr />
<h4><a href="#api_function_one" name="api_function_one"></a> <a href="#api_function_one"><code>api-function-one</code></a></h4>
<p>Short description</p>
<p>Explanation for developers using the API.</p>
<h5>Results</h5>
<ul>
<li><a href="#api_function_one.result0" name="api_function_one.result0"></a> <code>result0</code>: <a href="#api_type_one"><a href="#api_type_one"><code>api-type-one</code></a></a></li>
</ul>
27 changes: 14 additions & 13 deletions proposal-template.abi.md → proposal-template.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
# Types
# Import interface `proposal-interface-name`

## Types

## <a href="#api_type_one" name="api_type_one"></a> `api-type-one`: record

Short description
Explanation for developers using the API.
Short description

Explanation for developers using the API.

Size: 16, Alignment: 8

### Record Fields

- <a href="api_type_one.property1" name="api_type_one.property1"></a> [`property1`](#api_type_one.property1): `u64`


- <a href="api_type_one.property2" name="api_type_one.property2"></a> [`property2`](#api_type_one.property2): `string`


# Functions
## Functions

----

#### <a href="#api_function_one" name="api_function_one"></a> `api-function-one`

Short description
Explanation for developers using the API.
Short description

Explanation for developers using the API.
##### Results

- [`api-type-one`](#api_type_one)

24 changes: 24 additions & 0 deletions wasi-proposal-template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<h1>Import interface <code>proposal-interface-name</code></h1>
<h2>Types</h2>
<h2><a href="#api_type_one" name="api_type_one"></a> <a href="#api_type_one"><code>api-type-one</code></a>: record</h2>
<p>Short description</p>
<p>Explanation for developers using the API.</p>
<p>Size: 16, Alignment: 8</p>
<h3>Record Fields</h3>
<ul>
<li>
<p><a href="api_type_one.property1" name="api_type_one.property1"></a> <a href="#api_type_one.property1"><code>property1</code></a>: <code>u64</code></p>
</li>
<li>
<p><a href="api_type_one.property2" name="api_type_one.property2"></a> <a href="#api_type_one.property2"><code>property2</code></a>: <code>string</code></p>
</li>
</ul>
<h2>Functions</h2>
<hr />
<h4><a href="#api_function_one" name="api_function_one"></a> <a href="#api_function_one"><code>api-function-one</code></a></h4>
<p>Short description</p>
<p>Explanation for developers using the API.</p>
<h5>Results</h5>
<ul>
<li><a href="#api_function_one.result0" name="api_function_one.result0"></a> <code>result0</code>: <a href="#api_type_one"><a href="#api_type_one"><code>api-type-one</code></a></a></li>
</ul>
33 changes: 33 additions & 0 deletions wasi-proposal-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Import interface `proposal-interface-name`

## Types

## <a href="#api_type_one" name="api_type_one"></a> `api-type-one`: record

Short description

Explanation for developers using the API.

Size: 16, Alignment: 8

### Record Fields

- <a href="api_type_one.property1" name="api_type_one.property1"></a> [`property1`](#api_type_one.property1): `u64`


- <a href="api_type_one.property2" name="api_type_one.property2"></a> [`property2`](#api_type_one.property2): `string`


## Functions

----

#### <a href="#api_function_one" name="api_function_one"></a> `api-function-one`

Short description

Explanation for developers using the API.
##### Results

- <a href="#api_function_one.result0" name="api_function_one.result0"></a> `result0`: [`api-type-one`](#api_type_one)

17 changes: 15 additions & 2 deletions proposal-template.wit.md → wit/proposal-template.wit.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@

[If you want to include examples of the API in use, these should be in the README and linked to from this file.]

## api_type_one
## `proposal-interface-name`

```wit
/// Short interface description.
///
/// Explanation for developers using the interface API.
default interface proposal-interface-name {
```

## `api_type_one`

```wit
/// Short description
Expand All @@ -20,7 +29,7 @@ record api-type-one {

More rigorous specification details for the implementer go here, if needed.

## api_function_one
## `api_function_one`

```wit
/// Short description
Expand All @@ -30,3 +39,7 @@ api-function-one: func() -> api-type-one
```

If needed, this would explain what a compliant implementation MUST do, such as never returning an earlier result from a later call.

```wit
}
```
12 changes: 12 additions & 0 deletions wit/world.wit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
This file contains a world that imports all interfaces in this proposal. Its
primary purpose is to allow unified documentation to be easiy generated for
the whole proposal.

Proposals should edit replace the import below (and this sentence) with imports
of their own interfaces.

```wit
default world wasi-proposal-template {
import proposal-interface-name: pkg.proposal-template.proposal-interface-name
}
```

0 comments on commit eafa66d

Please sign in to comment.