Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions old/rpc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ interface types {
prim-s16(s16),
prim-s32(s32),
prim-s64(s64),
prim-float32(float32),
prim-float64(float64),
prim-float32(f32),
prim-float64(f64),
prim-char(char),
prim-bool(bool),
prim-string(string),
Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/ccpp-language-guide/building-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Generating "example_component_type.o"
Include all your source files and additionally the generated `.c` and `.o` files and use the `clang` provided as part of the WASM SDK:

```shell
$ ~/wasi-sdk-23.0/bin/clang --sysroot ~/wasi-sdk-23.0/share/wasi-sysroot main.c example.c example_component_type.o -o example.module.wasm
$ $WASI_SDK_PATH/bin/clang --sysroot $WASI_SDK_PATH/share/wasi-sysroot main.c example.c example_component_type.o -o example.module.wasm
```

### Package it into a WASM component
Expand Down
12 changes: 6 additions & 6 deletions src/pages/docs/ccpp-language-guide/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,27 @@ rustup target add wasm32-wasi
### Install `wasm-tools`

```bash copy
cargo install --force --locked wasm-tools@1.210.0
cargo install --force --locked wasm-tools@1.223.0
```

Confirm the installation:

```bash
wasm-tools --version
wasm-tools 1.210.0
wasm-tools 1.223.0
```

### Install `wit-bindgen`

```bash copy
cargo install --force --locked wit-bindgen-cli@0.26.0
cargo install --force --locked wit-bindgen-cli@0.37.0
```

Confirm the installation:

```bash
wit-bindgen --version
wit-bindgen-cli 0.26.0
wit-bindgen-cli 0.37.0
```

</Steps>
Expand All @@ -64,8 +64,8 @@ wit-bindgen-cli 0.26.0
correct version is installed with the commands described above.
</Callout>

## Install WASM SDK 23.0
## Install WASI SDK 25.0

Download and extract [WASI SDK 23.0](https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-23) somewhere - in the examples we assume it is put in `~/wasi-sdk-23.0`.
Download and extract [WASI SDK 25.0](https://github.com/WebAssembly/wasi-sdk/releases/tag/wasi-sdk-25) somewhere. In the examples we assume that the `WASI_SDK_PATH` environment variable is set up pointing to the extracted SDK.

The SDK contains a version of `Clang` that can compile to WebAssembly modules, which can be converted into Golem components using the `wit-bindgen` and `wasm-tools` command line tools.
2 changes: 1 addition & 1 deletion src/pages/docs/concepts/components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ from source code, first [install Rust](https://www.rust-lang.org/tools/install),
then use _Cargo_ to build wasm-tools:

```bash
$ cargo install --force --locked wasm-tools@1.210.0
$ cargo install --force --locked wasm-tools@1.223.0
```

### wit-bindgen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,27 @@ rustup target add wasm32-wasi
### Install `wasm-tools`

```bash copy
cargo install --force --locked wasm-tools@1.210.0
cargo install --force --locked wasm-tools@1.223.0
```

Confirm the installation:

```bash
wasm-tools --version
wasm-tools 1.210.0
wasm-tools 1.223.0
```

### Install `wit-bindgen`

```bash copy
cargo install --force --locked wit-bindgen-cli@0.26.0
cargo install --force --locked wit-bindgen-cli@0.37.0
```

Confirm the installation:

```bash
wit-bindgen --version
wit-bindgen-cli 0.26.0
wit-bindgen-cli 0.37.0
```

</Steps>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/function-names.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface api {
record product-item {
product-id: string,
name: string,
price: float32,
price: f32,
quantity: u32,
}

Expand Down
8 changes: 4 additions & 4 deletions src/pages/docs/go-language-guide/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,27 @@ rustup target add wasm32-wasi
### Install `wasm-tools`

```bash copy
cargo install --force --locked wasm-tools@1.210.0
cargo install --force --locked wasm-tools@1.223.0
```

Confirm the installation:

```bash
wasm-tools --version
wasm-tools 1.210.0
wasm-tools 1.223.0
```

### Install `wit-bindgen`

```bash copy
cargo install --force --locked wit-bindgen-cli@0.26.0
cargo install --force --locked wit-bindgen-cli@0.37.0
```

Confirm the installation:

```bash
wit-bindgen --version
wit-bindgen-cli 0.26.0
wit-bindgen-cli 0.37.0
```

</Steps>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Component with URN urn:component:c57de1ee-fbe5-4068-a67d-908addc8aa44. Version:
Component name: cart.
Exports:
golem:component/api.{initialize-cart}(user-id: string)
golem:component/api.{add-item}(item: record { product-id: string, name: string, price: float32, quantity: u32 })
golem:component/api.{add-item}(item: record { product-id: string, name: string, price: f32, quantity: u32 })
golem:component/api.{remove-item}(product-id: string)
golem:component/api.{update-item-quantity}(product-id: string, quantity: u32)
golem:component/api.{checkout}() -> variant { error(string), success(record { order-id: string }) }
golem:component/api.{get-cart-contents}() -> list<record { product-id: string, name: string, price: float32, quantity: u32 }>
golem:component/api.{get-cart-contents}() -> list<record { product-id: string, name: string, price: f32, quantity: u32 }>
```

Here is an example of an API definition, which we will use to expose an HTTP API over the function `golem:component/api.{get-cart-contents}`.
Expand Down
3 changes: 1 addition & 2 deletions src/pages/docs/python-language-guide/defining-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ The command will create a new Golem project in the `py-example` directory, and p
<Callout type="warning">
Currently all imports must happen initialization-time, so every module used must be listed in the beginning of the main module.

This limitation is being tracked as [issue
#23](https://github.com/bytecodealliance/componentize-py/issues/23).
This limitation is being tracked as [issue#23](https://github.com/bytecodealliance/componentize-py/issues/23).

</Callout>

Expand Down
4 changes: 2 additions & 2 deletions src/pages/docs/python-language-guide/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ Python programs can be compiled into WASM components using the tool `componentiz
First install Python 3 to your system and once you have access to the `pip` package manager, install `componentize-py` using:

```shell
$ pip install componentize-py==0.13.5
$ pip install componentize-py==0.16.0

$ componentize-py --version
componentize-py 0.13.5
componentize-py 0.16.0
```

## Install WebAssembly tooling for Worker to Worker communication
Expand Down
6 changes: 3 additions & 3 deletions src/pages/docs/rust-language-guide/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ The last step is installing the `cargo-component` extension for Rust's `cargo` b
is installed with the commands described below.
</Callout>

Install the version `0.13.2` of `cargo-component` with `cargo` itself:
Install the version `0.20.0` of `cargo-component` with `cargo` itself:

```shell
$ cargo install --force --locked cargo-component@0.13.2
$ cargo install --force --locked cargo-component@0.20.0
```

Verify that the correct version is installed:

```shell
$ cargo component --version
cargo-component 0.13.2 (wasi:040ec92)
cargo-component-component 0.20.0 (2e497ee 2025-01-07)
```

Please refer [to the cargo-component website](http://github.com/bytecodealliance/cargo-component) for more information.
2 changes: 1 addition & 1 deletion wit-grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@
"numeric": {
"name": "entity.name.type.numeric.wit",
"comment": "Syntax for numeric types identifiers such as signed and unsigned integers and floating point identifiers",
"match": "\\b(u8|u16|u32|u64|s8|s16|s32|s64|float32|float64)\\b"
"match": "\\b(u8|u16|u32|u64|s8|s16|s32|s64|f32|f64|float32|float64)\\b"
},
"boolean": {
"name": "entity.name.type.boolean.wit",
Expand Down