Skip to content

Explicitly specify Wasm import module. - #365

Merged
PiotrSikora merged 1 commit into
proxy-wasm:mainfrom
PiotrSikora:wasm_import_module
May 19, 2026
Merged

PiotrSikora merged 1 commit into
proxy-wasm:mainfrom
PiotrSikora:wasm_import_module

Conversation

@PiotrSikora

Copy link
Copy Markdown
Member

Fixes build with upcoming Rust v1.96.

Found with nightly.

Fixes build with upcoming Rust v1.96.

Found with nightly.

Signed-off-by: Piotr Sikora <[email protected]>
@PiotrSikora PiotrSikora changed the title Explicitly define Wasm import module. Explicitly specify Wasm import module. May 19, 2026
@PiotrSikora
PiotrSikora merged commit 904607b into proxy-wasm:main May 19, 2026
23 of 24 checks passed
@PiotrSikora
PiotrSikora deleted the wasm_import_module branch May 19, 2026 13:50
@PiotrSikora

Copy link
Copy Markdown
Member Author

(outdated check failing due to new hashbrown needing huge MSRV bump - see: #364 (comment))

phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 12, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 13, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 16, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 17, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to envoyproxy/envoy that referenced this pull request Nov 17, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
phlax added a commit to phlax/envoy that referenced this pull request Nov 18, 2026
With the Rust bump on this branch, wasm targets no longer link with
undefined symbols, and proxy-wasm-rust-sdk 0.2.4 declares its host
functions in plain `extern "C"` blocks. Every Rust wasm test module
failed to link:

  rust-lld: error: ... undefined symbol: proxy_set_effective_context

proxy-wasm-rust-sdk 0.2.5 fixes this by declaring the import module
(proxy-wasm/proxy-wasm-rust-sdk#365). 0.2.5 also restructures the Bazel
files this branch's WORKSPACE setup loads, so patch 0.2.4 with the same
37 attributes rather than bumping it.

Signed-off-by: Ryan Northey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants