From f57c5c4d50686f77fd640c5119b58dbb25e55aef Mon Sep 17 00:00:00 2001 From: "promptless[bot]" <179508745+promptless[bot]@users.noreply.github.com> Date: Tue, 22 Apr 2025 14:29:15 +0000 Subject: [PATCH] Documentation updates from Promptless --- pages/registry/manifest.mdx | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/pages/registry/manifest.mdx b/pages/registry/manifest.mdx index 66d4adf..f6713ea 100644 --- a/pages/registry/manifest.mdx +++ b/pages/registry/manifest.mdx @@ -39,7 +39,7 @@ entrypoint = "wasmer-pack" ## \[dependencies\] -- `"/" = ""` +- `"/" = ""` ```toml filename="wasmer.toml" copy # ... @@ -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=` @@ -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 \ No newline at end of file