From 31b1eb00f5f67c3b8c19abf3562cfadc7c264bce Mon Sep 17 00:00:00 2001 From: grencez Date: Mon, 3 Jun 2024 16:48:28 -0700 Subject: [PATCH] readmes --- .bazelrc | 1 - MODULE.bazel | 13 +++++++++---- src/ccgrpc/BUILD.bazel | 1 + src/ccgrpc/README.md | 3 --- test/scenario/BUILD.bazel | 1 + 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.bazelrc b/.bazelrc index a8a908f..13494dd 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,4 +1,3 @@ -common --experimental_enable_bzlmod common --registry=https://raw.githubusercontent.com/rendezqueue/rendezqueue_bazel_registry/trunk common --registry=https://raw.githubusercontent.com/bazelbuild/bazel-central-registry/main common --cxxopt=-std=c++17 diff --git a/MODULE.bazel b/MODULE.bazel index fb78451..7dacbaa 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -3,22 +3,26 @@ module( version = "0.0.0", ) +bazel_dep(name = "rules_cc", version = "0.0.9") bazel_dep(name = "rules_license", version = "0.0.8") bazel_dep(name = "rules_proto", version = "6.0.0.bcr.1") bazel_dep( name = "abseil-cpp", version = "20240116.2", - repo_name = "com_google_absl") + repo_name = "com_google_absl", +) bazel_dep( name = "grpc", version = "1.62.1.bcr.1", - repo_name = "com_github_grpc_grpc") + repo_name = "com_github_grpc_grpc", +) bazel_dep( name = "fildesh", version = "0.1.9", - dev_dependency = True) + dev_dependency = True, +) git_override( module_name = "fildesh", remote = "https://github.com/fildesh/fildesh.git", @@ -27,7 +31,8 @@ git_override( bazel_dep( name = "rules_sxproto", version = "0.0.4", - dev_dependency = True) + dev_dependency = True, +) git_override( module_name = "rules_sxproto", remote = "https://github.com/rendezqueue/rules_sxproto.git", diff --git a/src/ccgrpc/BUILD.bazel b/src/ccgrpc/BUILD.bazel index ef51806..870a0de 100644 --- a/src/ccgrpc/BUILD.bazel +++ b/src/ccgrpc/BUILD.bazel @@ -1,3 +1,4 @@ +load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library") alias( name = "grpc_cc_lib", diff --git a/src/ccgrpc/README.md b/src/ccgrpc/README.md index b949ac4..740daf1 100644 --- a/src/ccgrpc/README.md +++ b/src/ccgrpc/README.md @@ -1,10 +1,7 @@ -This is a C++ / gRPC version of the server, but it doesn't actually do swapping yet so the binaries and deps are marked as testonly. I'd like to actually use gRPC but JavaScript in a browser cannot talk to it directly, so what's the point? Maybe grpc-web is a path forward, but it requires a proxy. -Anyway, this gRPC code shouldn't add too much extra to the build because JSON tests will rely on a protobuf schema for sanity. - You can test out the SSL authentication like this: ```shell diff --git a/test/scenario/BUILD.bazel b/test/scenario/BUILD.bazel index a196c89..eeabaac 100644 --- a/test/scenario/BUILD.bazel +++ b/test/scenario/BUILD.bazel @@ -1,4 +1,5 @@ load("@fildesh//tool/bazel:fildesh_test.bzl", "fildesh_test") +load("@rules_cc//cc:defs.bzl", "cc_binary") load("@rules_proto//proto:defs.bzl", "proto_library") load("@rules_sxproto//sxproto:defs.bzl", "sxproto_data")