Skip to content

Commit 995e8f3

Browse files
authored
Add proxy-wasm-cpp-sdk@0.0.0-20260123-894dd29 (#7390)
Adds proxy-wasm-cpp-sdk module based on commit `894dd29` (2026-01-23), newer than existing PR's `e5256b0` (2025-09-25). ## Module Configuration - **Version**: `0.0.0-20260123-894dd29` (8-digit date format) - **Source**: https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/894dd29ff8333d6cc51b416d334568058d6aef71.tar.gz - **Maintainers**: PiotrSikora, martijneken, mpwarres, leonm1, phlax - **Dependencies**: emsdk 4.0.13, protobuf 29.3, re2, rules_cc 0.2.0, rules_python 1.4.1 - **CI matrix**: Bazel 7.x, 8.x on debian11, macos, ubuntu2204 ## Patches 1. `proxy-wasm-cpp-sdk.patch` - Comments out emscripten `ALLOW_MEMORY_GROWTH` and `INITIAL_HEAP` flags (from envoyproxy/toolshed) 2. `module_version.patch` - Updates MODULE.bazel version string from `0.0.0` to `0.0.0-20260123-894dd29` ## Notes Upstream removed `rules_proto` dependency between commits e5256b0 and 894dd29. @bazel-io skip_check unstable_url Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent cf166af commit 995e8f3

File tree

7 files changed

+156
-0
lines changed

7 files changed

+156
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
module(
16+
name = "proxy-wasm-cpp-sdk",
17+
version = "0.0.0-20260123-894dd29",
18+
repo_name = "proxy_wasm_cpp_sdk",
19+
)
20+
21+
bazel_dep(
22+
name = "emsdk",
23+
version = "4.0.13",
24+
)
25+
bazel_dep(
26+
name = "platforms",
27+
version = "1.0.0",
28+
)
29+
bazel_dep(
30+
name = "protobuf",
31+
version = "29.3",
32+
repo_name = "com_google_protobuf",
33+
)
34+
bazel_dep(
35+
name = "re2",
36+
version = "2024-07-02.bcr.1",
37+
repo_name = "com_google_re2",
38+
)
39+
bazel_dep(
40+
name = "rules_cc",
41+
version = "0.2.0",
42+
)
43+
bazel_dep(
44+
name = "rules_python",
45+
version = "1.4.1",
46+
)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
--- a/contrib/BUILD
2+
+++ b/contrib/BUILD
3+
@@ -1,3 +1,5 @@
4+
+load("@rules_cc//cc:defs.bzl", "cc_library")
5+
+
6+
licenses(["notice"]) # Apache 2
7+
8+
cc_library(
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/MODULE.bazel b/MODULE.bazel
2+
index 0000000..1111111 100644
3+
--- a/MODULE.bazel
4+
+++ b/MODULE.bazel
5+
@@ -14,7 +14,7 @@
6+
7+
module(
8+
name = "proxy-wasm-cpp-sdk",
9+
- version = "0.0.0",
10+
+ version = "0.0.0-20260123-894dd29",
11+
repo_name = "proxy_wasm_cpp_sdk",
12+
)
13+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/bazel/defs.bzl b/bazel/defs.bzl
2+
index 87727c0..ae1b19b 100644
3+
--- a/bazel/defs.bzl
4+
+++ b/bazel/defs.bzl
5+
@@ -101,9 +101,9 @@ def proxy_wasm_cc_binary(
6+
# Give host code access to Emscripten's _malloc() function
7+
"-sEXPORTED_FUNCTIONS=_malloc",
8+
# Allow allocating memory past initial heap size
9+
- "-sALLOW_MEMORY_GROWTH=1",
10+
+ # "-sALLOW_MEMORY_GROWTH=1",
11+
# Initial amount of heap memory. 64KB matches Rust SDK starting heap size.
12+
- "-sINITIAL_HEAP=64KB",
13+
+ # "-sINITIAL_HEAP=64KB",
14+
],
15+
tags = tags + [
16+
"manual",
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright 2026 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
matrix:
16+
platform: ["debian11", "macos", "ubuntu2204"]
17+
bazel: [7.x, 8.x]
18+
tasks:
19+
verify_targets:
20+
name: "Build example WebAssembly modules"
21+
platform: ${{ platform }}
22+
bazel: ${{ bazel }}
23+
build_targets:
24+
- "@proxy-wasm-cpp-sdk//..."
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"url": "https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/894dd29ff8333d6cc51b416d334568058d6aef71.tar.gz",
3+
"integrity": "sha256-YRvk9G7bePDhTJJhbmUqjVzQdtOIaTVyUwgfLFpUdqc=",
4+
"strip_prefix": "proxy-wasm-cpp-sdk-894dd29ff8333d6cc51b416d334568058d6aef71",
5+
"patches": {
6+
"proxy-wasm-cpp-sdk.patch": "sha256-HX2I0ovtuofK8WmRwhIv2BoyHqTuc7WE+LzJHpKH8JU=",
7+
"module_version.patch": "sha256-7YsNSCAHtqbJRu8GM8+ItYrutLxN7BHJvmjnrR0d4Xg=",
8+
"add_load_to_contrib.patch": "sha256-RUkvVMX87Ern2GzSKkthSs4osTchzsl4fH+7E31hNi8="
9+
},
10+
"patch_strip": 1
11+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"homepage": "https://github.com/proxy-wasm/proxy-wasm-cpp-sdk",
3+
"maintainers": [
4+
{
5+
"email": "piotrsikora@google.com",
6+
"github": "PiotrSikora",
7+
"github_user_id": 190297,
8+
"name": "Piotr Sikora"
9+
},
10+
{
11+
"email": "martijneken@google.com",
12+
"github": "martijneken",
13+
"github_user_id": 2081190,
14+
"name": "Martijn Eken"
15+
},
16+
{
17+
"email": "mpwarres@google.com",
18+
"github": "mpwarres",
19+
"github_user_id": 156047,
20+
"name": "Michael Warres"
21+
},
22+
{
23+
"github": "leonm1",
24+
"github_user_id": 32306579
25+
},
26+
{
27+
"github": "phlax",
28+
"github_user_id": 454682
29+
}
30+
],
31+
"repository": [
32+
"github:proxy-wasm/proxy-wasm-cpp-sdk"
33+
],
34+
"versions": [
35+
"0.0.0-20260123-894dd29"
36+
],
37+
"yanked_versions": {}
38+
}

0 commit comments

Comments
 (0)