Skip to content

Commit ae63913

Browse files
committed
Re-add protobuf dependency.
This was incorrectly removed in #170, but it's needed by NullVM plugins that make gRPC calls (built with -DPROXY_WASM_PROTOBUF). Signed-off-by: Piotr Sikora <[email protected]>
1 parent b524f41 commit ae63913

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ cc_library(
7979
defines = ["PROXY_WASM_HAS_RUNTIME_NULL"],
8080
deps = [
8181
":headers",
82+
"@com_google_protobuf//:protobuf_lite",
8283
"@proxy_wasm_cpp_sdk//:api_lib",
8384
],
8485
)

bazel/repositories.bzl

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1717
def proxy_wasm_cpp_host_repositories():
1818
http_archive(
1919
name = "proxy_wasm_cpp_sdk",
20-
sha256 = "489768fb95ede507543ee5982610b541a2c5b57216695a9e5c2eb8c83c9d20a3",
21-
strip_prefix = "proxy-wasm-cpp-sdk-9af5ac0145a8790f62ca501c43f6fa1ea24d2d93",
22-
urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/9af5ac0145a8790f62ca501c43f6fa1ea24d2d93.tar.gz"],
20+
sha256 = "fb62d0db7a5e94b2bf0bfab72bb967b1d4549d75be81a457dad48d4a22430947",
21+
strip_prefix = "proxy-wasm-cpp-sdk-7bf94c86800773ee762be09fb84dcc2972da0b37",
22+
urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/7bf94c86800773ee762be09fb84dcc2972da0b37.tar.gz"],
2323
)
2424

2525
http_archive(
@@ -77,6 +77,13 @@ def proxy_wasm_cpp_host_repositories():
7777
url = "https://github.com/bazelbuild/rules_rust/archive/96d5118f03411f80182fd45426e259eedf809d7a.tar.gz",
7878
)
7979

80+
http_archive(
81+
name = "com_google_protobuf",
82+
sha256 = "77ad26d3f65222fd96ccc18b055632b0bfedf295cb748b712a98ba1ac0b704b2",
83+
strip_prefix = "protobuf-3.17.3",
84+
url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz",
85+
)
86+
8087
http_archive(
8188
name = "rules_foreign_cc",
8289
sha256 = "d54742ffbdc6924f222d2179f0e10e911c5c659c4ae74158e9fe827aad862ac6",

include/proxy-wasm/wasm_api_impl.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
// Required by "proxy_wasm_api.h" included within null_plugin namespace.
1919

20+
#ifdef PROXY_WASM_PROTOBUF
21+
#include "google/protobuf/message_lite.h"
22+
#endif
23+
2024
#include <cstring>
2125
#include <functional>
2226
#include <memory>

0 commit comments

Comments
 (0)