You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The `task return` expression is type-checked against the declared return type of the enclosing `export async fn`.
4347
4347
- The `async` keyword on a function declaration has no effect on callers; Wado is fully colorless. `async` only appears in `export async fn` declarations to signal CM async calling convention at the component boundary.
4348
4348
4349
-
### Attribute Syntax for WASI Linking
4349
+
### Attribute Syntax for Component Model Linking
4350
4350
4351
-
Use `#[wasi(...)]` attributes to link Wado definitions to WASI interfaces:
4351
+
Use `#[cm(...)]` attributes to link Wado definitions to Component Model interfaces:
Marks a function as providing a compiler feature. The compiler uses these flags to enable optimizations and synthesis passes (e.g., `array_append`, `string_append`, `option`, `result`, `default`). Used in `core:prelude` method implementations.
Links Wado definitions (effects, resources, enums) to WASI interfaces. See [Attribute Syntax for WASI Linking](#attribute-syntax-for-wasi-linking).
4547
+
Links Wado definitions (effects, resources, enums) to Component Model interfaces. See [Attribute Syntax for Component Model Linking](#attribute-syntax-for-component-model-linking).
Copy file name to clipboardExpand all lines: docs/wep-2026-04-01-tide.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ Pipeline:
87
87
88
88
### Unified Attribute: `#[cm("...")]`
89
89
90
-
The current `#[wasi("...")]` attribute is WASI-specific. Tide introduces a generalized `#[cm("...")]` attribute for all Component Model ABI mappings, with the namespace encoded in the value:
90
+
The `#[cm("...")]` attribute provides Component Model ABI mappings for all namespaces, with the namespace encoded in the value:
0 commit comments