Commit cafa004
committed
fix(examples): import proxy_add_header_map_value from the env module
The transform example declares the Proxy-Wasm host function with a bare
extern block. Under `lto = true`, rust-lld leaves it as an unresolved
symbol and the wasm32 build fails to link. Annotate the block with
`#[link(wasm_import_module = "env")]` so the symbol is emitted as a Wasm
import, matching how the proxy-wasm SDK declares its host calls.
Signed-off-by: Ramazan Kara <github@r-kara.de>1 parent 208fad8 commit cafa004
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
0 commit comments