Skip to main content

Module resolve

Module resolve 

Source
Expand description

Host-side config resolution before a guest runs.

Guests never see the variable pool. Instead the host rewrites the node config:

  • Every string containing {{#ns.name#}} placeholders is resolved. A string that is exactly one placeholder becomes the typed value (object, number, array…); mixed text renders to a string.
  • Every key ending in selector whose value is a selector (["ns","name"] or "ns.name") keeps its value and gains a sibling <key>_value with the resolved value (null when missing).

Secrets are masked unless the plugin is trusted with them (crate::WasmLimits::expose_secrets).

Functions§

collect_selectors
Every selector a config references (placeholders and selector keys), for build-time reference validation.
resolve_config
Resolve placeholders and selector keys in config against pool.