Skip to content

Commit 515ba67

Browse files
authored
replace deprecated wasi URLs into the current ones. (#344)
Signed-off-by: Tomoya Fujita <tomoya.fujita825@gmail.com>
1 parent 14813aa commit 515ba67

11 files changed

Lines changed: 22 additions & 22 deletions

File tree

component-model/src/creating-runnable-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ are able to make use of more robust standardized interfaces that mimic a CLI env
4545

4646
This section explores how to create components that are trivially runanbel (like binaries) in relevant languages.
4747

48-
[wasi-cli-iface-run]: https://github.com/WebAssembly/wasi-cli/tree/main/wit/run.wit
48+
[wasi-cli-iface-run]: https://github.com/WebAssembly/WASI/blob/main/proposals/cli/wit/run.wit
4949

5050
## Languages
5151

component-model/src/design/component-model-concepts.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ must be invoked in an environment that implements those interfaces.
6161
A [_package_](./packages.md) is a set of WIT files
6262
containing a related set of interfaces and worlds.
6363

64-
For example, the [wasi-http](https://github.com/WebAssembly/wasi-http/blob/main/wit/proxy.wit) package includes
64+
For example, the [wasi-http](https://github.com/WebAssembly/WASI/blob/main/proposals/http/wit/proxy.wit) package includes
6565
an `imports` world encapsulating the interfaces that an HTTP proxy depends on,
6666
and a `proxy` world that depends on `imports`.
6767

@@ -102,9 +102,9 @@ standardizing the functionality components depend on.
102102
[design-choices]: https://github.com/WebAssembly/component-model/blob/main/design/high-level/Choices.md
103103
[wit]: https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md
104104
[wasi]: https://wasi.dev/
105-
[wasi-cli]: https://github.com/WebAssembly/wasi-cli/
106-
[wasi-cli-stdio]: https://github.com/WebAssembly/wasi-cli/blob/main/wit/stdio.wit
107-
[wasi-cli-command]: https://github.com/WebAssembly/wasi-cli/blob/main/wit/command.wit
108-
[wasi-http]: https://github.com/WebAssembly/wasi-http
105+
[wasi-cli]: https://github.com/WebAssembly/WASI/tree/main/proposals/cli
106+
[wasi-cli-stdio]: https://github.com/WebAssembly/WASI/blob/main/proposals/cli/wit/stdio.wit
107+
[wasi-cli-command]: https://github.com/WebAssembly/WASI/blob/main/proposals/cli/wit/command.wit
108+
[wasi-http]: https://github.com/WebAssembly/WASI/tree/main/proposals/http
109109

110110
[!NOTE]: #

component-model/src/design/interfaces.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ and imports anything imported by the "wall clock" interface.
5252
Interfaces are defined using [the WIT language](./wit.md).
5353

5454
[wp-contract]: https://en.wikipedia.org/wiki/Design_by_contract
55-
[wasi-http-handler]: https://github.com/WebAssembly/wasi-http/blob/main/wit/handler.wit
56-
[wasi-clocks-wall-clock]: https://github.com/WebAssembly/wasi-clocks/blob/main/wit/wall-clock.wit
55+
[wasi-http-handler]: https://github.com/WebAssembly/WASI/blob/main/proposals/http/wit/handler.wit
56+
[wasi-clocks-wall-clock]: https://github.com/WebAssembly/WASI/blob/main/proposals/clocks/wit/wall-clock.wit
5757

5858
> For a more formal definition of an interface, take a look at the [WIT specification](https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md).

component-model/src/design/wit-example.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ For a full WIT reference, see [the next section](./wit.md).
77
## Clocks
88

99
The following is a simplified version of the world defined in
10-
the [wasi:clocks](https://github.com/WebAssembly/wasi-clocks) package.
10+
the [wasi:clocks](https://github.com/WebAssembly/WASI/tree/main/proposals/clocks) package.
1111

1212
Suppose we want to write a component that provides clock functionality.
1313
This component will represent a "wall clock", which can be reset
@@ -102,7 +102,7 @@ That was just a warm-up; let's look at an example that uses
102102
more of WIT's built-in and user-defined types.
103103

104104
The following is a very simplified version of the main interface
105-
defined in the [wasi-filesystem](https://github.com/WebAssembly/wasi-filesystem) package.
105+
defined in the [wasi-filesystem](https://github.com/WebAssembly/WASI/tree/main/proposals/filesystem) package.
106106
Much of the functionality has been removed.
107107
Here, a file descriptor supports just two operations:
108108
* `open-at()`: Open a file.

component-model/src/language-support/building-a-simple-component/go.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ $ wkg wit build
9393
WIT package written to docs:adder@0.1.0.wasm
9494
```
9595

96-
[wasi-cli]: https://github.com/WebAssembly/wasi-cli
96+
[wasi-cli]: https://github.com/WebAssembly/WASI/tree/main/proposals/cli
9797

9898
## 3. Generate bindings for the Wasm component
9999

component-model/src/language-support/creating-runnable-components/rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ command line interface.
7070
Unlike command components, library components have no `_start`, but by exporting the `wasi:cli/run` interface,
7171
tooling that recognizes these exports can easily execute a given WebAssembly binary (e.g. `wasmtime run`).
7272

73-
[wasi-cli-iface-run]: https://github.com/WebAssembly/wasi-cli/tree/main/wit/run.wit
74-
[wasi-cli]: https://github.com/WebAssembly/wasi-cli
73+
[wasi-cli-iface-run]: https://github.com/WebAssembly/WASI/blob/main/proposals/cli/wit/run.wit
74+
[wasi-cli]: https://github.com/WebAssembly/WASI/tree/main/proposals/cli
7575

7676
### 1. Create a new Rust library project
7777

component-model/src/reference/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ With WIT, platform builders can define *any* interface that WebAssembly componen
7575
expect to access—WASI enables building interfaces on top of a shared standard set of abstractions.
7676

7777
[wit]: https://component-model.bytecodealliance.org/design/wit.html
78-
[wasi-http]: https://github.com/WebAssembly/wasi-http
78+
[wasi-http]: https://github.com/WebAssembly/WASI/tree/main/proposals/http
7979

8080
## Q: I see the terms Preview 1 and Preview 2 frequently. What do those refer to?
8181

@@ -116,7 +116,7 @@ for interacting with environment variables.
116116
The component is said to "import" the `wasi:cli/environment` interface,
117117
using the available functions and types therein.
118118

119-
[wasi-cli-env]: https://github.com/WebAssembly/wasi-cli/blob/main/wit/environment.wit
119+
[wasi-cli-env]: https://github.com/WebAssembly/WASI/blob/main/proposals/cli/wit/environment.wit
120120

121121
## Q: What are component exports?
122122

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Running Components
22

33
There are two standard WIT worlds that runtimes support.
4-
These worlds are the [`wasi:cli/command` world](https://github.com/WebAssembly/wasi-cli/blob/main/wit/command.wit)
5-
and the [`wasi:http/proxy` world](https://github.com/WebAssembly/wasi-http/blob/main/wit/proxy.wit).
4+
These worlds are the [`wasi:cli/command` world](https://github.com/WebAssembly/WASI/blob/main/proposals/cli/wit/command.wit)
5+
and the [`wasi:http/proxy` world](https://github.com/WebAssembly/WASI/blob/main/proposals/http/wit/proxy.wit).
66
All other WIT worlds and interfaces are considered to be custom.
77
In the following sections, you'll see how to run components that implement either world, as well as how to invoke custom exports.

component-model/src/running-components/jco.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# jco
22

33
[jco](https://github.com/bytecodealliance/jco) is a fully native JavaScript tool for working with components in JavaScript.
4-
It supports the [`wasi:cli/command` world](https://github.com/WebAssembly/wasi-cli/blob/main/wit/command.wit).
4+
It supports the [`wasi:cli/command` world](https://github.com/WebAssembly/WASI/blob/main/proposals/cli/wit/command.wit).
55
`jco` also provides features for transpiling WebAssembly components to ECMAScript modules (ES modules),
66
and for building WebAssembly components from JavaScript and WIT.
77

component-model/src/running-components/wasmtime.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Wasmtime
22

33
[Wasmtime](https://github.com/bytecodealliance/wasmtime/) is the reference implementation of the Component Model.
4-
It supports running components that implement the [`wasi:cli/command` world](https://github.com/WebAssembly/wasi-cli/blob/main/wit/command.wit)
5-
and serving components that implement the [`wasi:http/proxy` world](https://github.com/WebAssembly/wasi-http/blob/main/wit/proxy.wit).
4+
It supports running components that implement the [`wasi:cli/command` world](https://github.com/WebAssembly/WASI/blob/main/proposals/cli/wit/command.wit)
5+
and serving components that implement the [`wasi:http/proxy` world](https://github.com/WebAssembly/WASI/blob/main/proposals/http/wit/proxy.wit).
66
Wasmtime can also invoke functions exported from a component.
77

88
## Running command components with Wasmtime
@@ -21,7 +21,7 @@ See the [Wasmtime guide](https://docs.wasmtime.dev/) for information on granting
2121

2222
## Running HTTP components with Wasmtime
2323

24-
You can execute components that implement the [HTTP proxy world](https://github.com/WebAssembly/wasi-http/blob/main/wit/proxy.wit) with the `wasmtime serve` subcommand.
24+
You can execute components that implement the [HTTP proxy world](https://github.com/WebAssembly/WASI/blob/main/proposals/http/wit/proxy.wit) with the `wasmtime serve` subcommand.
2525
[The Wasmtime CLI](https://github.com/bytecodealliance/wasmtime) supports serving these components as of `v14.0.3`.
2626

2727
To run a HTTP component with Wasmtime, execute:

0 commit comments

Comments
 (0)