Skip to content

Commit e5256b0

Browse files
authored
feat: Update Bazel configuration and add MODULE.bazel for dependency management (#189)
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent 7465dee commit e5256b0

File tree

6 files changed

+43
-2
lines changed

6 files changed

+43
-2
lines changed

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
# enables improved Bazel C++ toolchain resolution method that became the
88
# default in newer Bazel version and does not cause problems, we keep it.
99
build --incompatible_enable_cc_toolchain_resolution
10+
# Enable Bzlmod for every Bazel command
11+
common --enable_bzlmod

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.6.1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/bazel-*
2+
MODULE.bazel.lock

BUILD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_proto_library")
1+
load("@com_google_protobuf//bazel:cc_proto_library.bzl", "cc_proto_library")
2+
load("@rules_cc//cc:defs.bzl", "cc_library")
23
load("@rules_proto//proto:defs.bzl", "proto_library")
34

45
licenses(["notice"]) # Apache 2

MODULE.bazel

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
module(
2+
name = "proxy-wasm-cpp-sdk",
3+
version = "0.0.0",
4+
repo_name = "proxy_wasm_cpp_sdk",
5+
)
6+
7+
bazel_dep(
8+
name = "emsdk",
9+
version = "4.0.13",
10+
)
11+
bazel_dep(
12+
name = "platforms",
13+
version = "1.0.0",
14+
)
15+
bazel_dep(
16+
name = "protobuf",
17+
version = "29.3",
18+
repo_name = "com_google_protobuf",
19+
)
20+
bazel_dep(
21+
name = "re2",
22+
version = "2024-07-02.bcr.1",
23+
repo_name = "com_google_re2",
24+
)
25+
bazel_dep(
26+
name = "rules_cc",
27+
version = "0.2.0",
28+
)
29+
bazel_dep(
30+
name = "rules_proto",
31+
version = "7.1.0",
32+
)
33+
bazel_dep(
34+
name = "rules_python",
35+
version = "1.4.1",
36+
)

WORKSPACE.bzlmod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
workspace(name = "proxy_wasm_cpp_sdk")

0 commit comments

Comments
 (0)