Skip to content

Commit

Permalink
add 1.2.0 to registry
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Jun 18, 2024
1 parent a931063 commit d7cdd75
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion example/use-arena-with-brpc/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bazel_dep(name = 'abseil-cpp', version = '20240116.2')
bazel_dep(name = 'babylon', version = 'main')
bazel_dep(name = 'babylon', version = '1.2.0')
bazel_dep(name = 'brpc', version = '1.9.0')
bazel_dep(name = 'tcmalloc', version = '0.0.0-20240411-5ed309d')
single_version_override(module_name = 'protobuf', version = '25.3.arenastring')
1 change: 1 addition & 0 deletions example/use-arena-with-brpc/echo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
syntax = "proto3";
package example;

option cc_generic_services = true;
Expand Down
45 changes: 45 additions & 0 deletions registry/modules/babylon/1.2.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
module(
name = 'babylon',
version = '1.2.0',
compatibility_level = 1,
)

################################################################################
# LOWER BOUND dependency versions.
# Bzlmod follows MVS:
# https://bazel.build/versions/6.0.0/build/bzlmod#version-resolution
# Thus the highest version in their module graph is resolved.

# --registry=https://bcr.bazel.build
bazel_dep(name = 'abseil-cpp', version = '20210324.2', repo_name = 'com_google_absl')
bazel_dep(name = 'bazel_skylib', version = '1.0.3')
bazel_dep(name = 'protobuf', version = '3.19.6', repo_name = 'com_google_protobuf')

# --registry=https://raw.githubusercontent.com/bazelboost/registry/main
bazel_dep(name = 'boost.preprocessor', version = '1.83.0.bzl.1')
bazel_dep(name = 'boost.spirit', version = '1.83.0.bzl.1')
################################################################################

################################################################################
# test only dependency

# --registry=https://bcr.bazel.build
single_version_override(module_name = 'abseil-cpp', version = '20240116.2')
bazel_dep(name = 'googletest', version = '1.14.0', repo_name = 'com_google_googletest', dev_dependency = True)

# --registry=file://%workspace%/registry
# protobuf 25.3 is not officially support in BCR
single_version_override(module_name = 'protobuf', version = '25.3')
# rules_cuda latest release 0.2.1 is too old and do not have auto detect feature
bazel_dep(name = 'rules_cuda', version = '0.2.2-dev', dev_dependency = True)

cuda = use_extension('@rules_cuda//cuda:extensions.bzl', 'toolchain', dev_dependency = True)
cuda.local_toolchain()

# cross compile toolchain
bazel_dep(name = 'rules_cc', version = '0.0.9', dev_dependency = True)
bazel_dep(name = 'platforms', version = '0.0.10', dev_dependency = True)
cross_config = use_extension('//:bazel/cross_toolchain.bzl', 'cross_config', dev_dependency = True)
use_repo(cross_config, 'cross_config_toolchain')
register_toolchains('@cross_config_toolchain//:cross-toolchain', dev_dependency = True)
################################################################################
5 changes: 5 additions & 0 deletions registry/modules/babylon/1.2.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"url": "https://github.com/baidu/babylon/archive/refs/tags/v1.2.0.tar.gz",
"strip_prefix": "babylon-1.2.0",
"integrity": "sha256-foPlF35E6YxINzp1Hv9tkDZ8rQ1TlkHtS1lVhgbu1yc="
}
1 change: 1 addition & 0 deletions registry/modules/babylon/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
}
],
"versions": [
"1.2.0",
"1.1.6",
"1.1.5",
"1.1.4"
Expand Down

0 comments on commit d7cdd75

Please sign in to comment.