Skip to content
Open
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
24 changes: 22 additions & 2 deletions pages/registry/manifest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ entrypoint = "wasmer-pack"

## \[dependencies\]

- `"<namespace>/<name>" = "<version>"`
- `"<namespace>/<n>" = "<version>"`

```toml filename="wasmer.toml" copy
# ...
Expand Down Expand Up @@ -81,6 +81,26 @@ exports = "./wasmer-pack.wai"
imports = ["http-client.wai", "logging.wai"]
```

### \[module.annotations\]

Miscellaneous annotations that provide hints about how the module should be handled.

#### \[module.annotations.suggested_compiler_optimizations\]

Hints for the compiler about optimizations that should be applied when compiling this module.

- `pass_params` \(boolean\): Enable the g0m0 optimization pass, which can improve performance for certain modules.

```toml filename="wasmer.toml" copy
[[module]]
name = "php"
source = "sapi/cli/php.wasm"
abi = "wasi"

[module.annotations.suggested_compiler_optimizations]
pass_params = true
```

## \[\[command\]\]

- `name` **required** \(string\): the name of the command, invoked via `wasmer run . --command=<command-name>`
Expand Down Expand Up @@ -162,4 +182,4 @@ env = ["COMPATIBILITY_MODE=true"]
```

[wasmer-pack]: https://github.com/wasmerio/wasmer-pack
[wai]: https://github.com/wasmerio/wai
[wai]: https://github.com/wasmerio/wai