Skip to content

Commit 5836887

Browse files
committed
Drop C language. The uPB plugin is no longer publicly visible and has no stable API
1 parent ef6a5b5 commit 5836887

File tree

19 files changed

+1
-319
lines changed

19 files changed

+1
-319
lines changed

.bazelci/presubmit.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -56,26 +56,6 @@ tasks:
5656
- make buf_buf_proto_breaking_test_example
5757
- make buf_buf_proto_lint_test_example
5858

59-
c_ubuntu2204_examples:
60-
name: C
61-
platform: ubuntu2204
62-
environment:
63-
BAZEL_EXTRA_FLAGS: "--cxxopt=-std=c++17 --host_cxxopt=-std=c++17"
64-
shell_commands:
65-
- set -x
66-
- make c_c_proto_compile_example
67-
- make c_c_proto_library_example
68-
69-
c_macos_examples:
70-
name: C
71-
platform: macos
72-
environment:
73-
BAZEL_EXTRA_FLAGS: "--cxxopt=-std=c++17 --host_cxxopt=-std=c++17"
74-
shell_commands:
75-
- set -x
76-
- make c_c_proto_compile_example
77-
- make c_c_proto_library_example
78-
7959
cpp_ubuntu2204_examples:
8060
name: C++
8161
platform: ubuntu2204

.bazelignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ test_workspaces
44
examples/buf/buf_proto_breaking_test
55
examples/buf/buf_proto_lint_test
66

7-
examples/c/c_proto_compile
8-
examples/c/c_proto_library
9-
107
examples/cpp/cpp_proto_compile
118
examples/cpp/cpp_grpc_compile
129
examples/cpp/cpp_proto_library

MODULE.bazel

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ local_path_override(
3535
path = "modules/buf",
3636
)
3737

38-
# C
39-
bazel_dep(name = "rules_proto_grpc_c", version = "0.0.0.rpg.version.placeholder")
40-
local_path_override(
41-
module_name = "rules_proto_grpc_c",
42-
path = "modules/c",
43-
)
44-
4538
# C++
4639
bazel_dep(name = "rules_proto_grpc_cpp", version = "0.0.0.rpg.version.placeholder")
4740
local_path_override(

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ Full documentation for the current and previous versions [can be found here](htt
7272
| ---: | :--- | :--- |
7373
| [Buf](https://rules-proto-grpc.com/en/latest/lang/buf.html) | [buf_proto_breaking_test](https://rules-proto-grpc.com/en/latest/lang/buf.html#buf-proto-breaking-test) | Checks .proto files for breaking changes ([example](/examples/buf/buf_proto_breaking_test)) |
7474
| [Buf](https://rules-proto-grpc.com/en/latest/lang/buf.html) | [buf_proto_lint_test](https://rules-proto-grpc.com/en/latest/lang/buf.html#buf-proto-lint-test) | Lints .proto files ([example](/examples/buf/buf_proto_lint_test)) |
75-
| [C](https://rules-proto-grpc.com/en/latest/lang/c.html) | [c_proto_compile](https://rules-proto-grpc.com/en/latest/lang/c.html#c-proto-compile) | Generates C protobuf ``.h`` & ``.c`` files ([example](/examples/c/c_proto_compile)) |
76-
| [C](https://rules-proto-grpc.com/en/latest/lang/c.html) | [c_proto_library](https://rules-proto-grpc.com/en/latest/lang/c.html#c-proto-library) | Generates a C protobuf library using ``cc_library``, with dependencies linked ([example](/examples/c/c_proto_library)) |
7775
| [C++](https://rules-proto-grpc.com/en/latest/lang/cpp.html) | [cpp_proto_compile](https://rules-proto-grpc.com/en/latest/lang/cpp.html#cpp-proto-compile) | Generates C++ protobuf ``.h`` & ``.cc`` files ([example](/examples/cpp/cpp_proto_compile)) |
7876
| [C++](https://rules-proto-grpc.com/en/latest/lang/cpp.html) | [cpp_grpc_compile](https://rules-proto-grpc.com/en/latest/lang/cpp.html#cpp-grpc-compile) | Generates C++ protobuf and gRPC ``.h`` & ``.cc`` files ([example](/examples/cpp/cpp_grpc_compile)) |
7977
| [C++](https://rules-proto-grpc.com/en/latest/lang/cpp.html) | [cpp_proto_library](https://rules-proto-grpc.com/en/latest/lang/cpp.html#cpp-proto-library) | Generates a C++ protobuf library using ``cc_library``, with dependencies linked ([example](/examples/cpp/cpp_proto_library)) |

examples/Makefile.mk

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@ buf_buf_proto_lint_test_example:
1111
.PHONY: buf_examples
1212
buf_examples: buf_buf_proto_breaking_test_example buf_buf_proto_lint_test_example
1313

14-
.PHONY: c_c_proto_compile_example
15-
c_c_proto_compile_example:
16-
cd examples/c/c_proto_compile; \
17-
bazel --batch build ${BAZEL_EXTRA_FLAGS} --verbose_failures --disk_cache=../../bazel-disk-cache //...
18-
19-
.PHONY: c_c_proto_library_example
20-
c_c_proto_library_example:
21-
cd examples/c/c_proto_library; \
22-
bazel --batch build ${BAZEL_EXTRA_FLAGS} --verbose_failures --disk_cache=../../bazel-disk-cache //...
23-
24-
.PHONY: c_examples
25-
c_examples: c_c_proto_compile_example c_c_proto_library_example
26-
2714
.PHONY: cpp_cpp_proto_compile_example
2815
cpp_cpp_proto_compile_example:
2916
cd examples/cpp/cpp_proto_compile; \
@@ -196,4 +183,4 @@ python_python_grpclib_library_example:
196183
python_examples: python_python_proto_compile_example python_python_grpc_compile_example python_python_grpclib_compile_example python_python_proto_library_example python_python_grpc_library_example python_python_grpclib_library_example
197184

198185
.PHONY: all_examples
199-
all_examples: buf_buf_proto_breaking_test_example buf_buf_proto_lint_test_example c_c_proto_compile_example c_c_proto_library_example cpp_cpp_proto_compile_example cpp_cpp_grpc_compile_example cpp_cpp_proto_library_example cpp_cpp_grpc_library_example doc_doc_docbook_compile_example doc_doc_html_compile_example doc_doc_json_compile_example doc_doc_markdown_compile_example doc_doc_template_compile_example go_go_proto_compile_example go_go_grpc_compile_example go_go_proto_library_example go_go_grpc_library_example grpc_gateway_gateway_grpc_compile_example grpc_gateway_gateway_openapiv2_compile_example grpc_gateway_gateway_grpc_library_example java_java_proto_compile_example java_java_grpc_compile_example java_java_proto_library_example java_java_grpc_library_example objc_objc_proto_compile_example objc_objc_grpc_compile_example objc_objc_proto_library_example objc_objc_grpc_library_example python_python_proto_compile_example python_python_grpc_compile_example python_python_grpclib_compile_example python_python_proto_library_example python_python_grpc_library_example python_python_grpclib_library_example
186+
all_examples: buf_buf_proto_breaking_test_example buf_buf_proto_lint_test_example cpp_cpp_proto_compile_example cpp_cpp_grpc_compile_example cpp_cpp_proto_library_example cpp_cpp_grpc_library_example doc_doc_docbook_compile_example doc_doc_html_compile_example doc_doc_json_compile_example doc_doc_markdown_compile_example doc_doc_template_compile_example go_go_proto_compile_example go_go_grpc_compile_example go_go_proto_library_example go_go_grpc_library_example grpc_gateway_gateway_grpc_compile_example grpc_gateway_gateway_openapiv2_compile_example grpc_gateway_gateway_grpc_library_example java_java_proto_compile_example java_java_grpc_compile_example java_java_proto_library_example java_java_grpc_library_example objc_objc_proto_compile_example objc_objc_grpc_compile_example objc_objc_proto_library_example objc_objc_grpc_library_example python_python_proto_compile_example python_python_grpc_compile_example python_python_grpclib_compile_example python_python_proto_library_example python_python_grpc_library_example python_python_grpclib_library_example

examples/c/c_proto_compile/BUILD.bazel

Lines changed: 0 additions & 16 deletions
This file was deleted.

examples/c/c_proto_compile/MODULE.bazel

Lines changed: 0 additions & 18 deletions
This file was deleted.

examples/c/c_proto_compile/WORKSPACE

Whitespace-only changes.

examples/c/c_proto_library/BUILD.bazel

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/c/c_proto_library/MODULE.bazel

Lines changed: 0 additions & 18 deletions
This file was deleted.

examples/c/c_proto_library/WORKSPACE

Whitespace-only changes.

modules/c/BUILD.bazel

Lines changed: 0 additions & 11 deletions
This file was deleted.

modules/c/MODULE.bazel

Lines changed: 0 additions & 9 deletions
This file was deleted.

modules/c/WORKSPACE

Whitespace-only changes.

modules/c/c_proto_compile.bzl

Lines changed: 0 additions & 26 deletions
This file was deleted.

modules/c/c_proto_library.bzl

Lines changed: 0 additions & 59 deletions
This file was deleted.

modules/c/defs.bzl

Lines changed: 0 additions & 8 deletions
This file was deleted.

tools/rulegen/c.go

Lines changed: 0 additions & 96 deletions
This file was deleted.

tools/rulegen/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ func action(c *cli.Context) error {
8989

9090
languages := []*Language{
9191
makeBuf(),
92-
makeC(),
9392
makeCpp(),
9493
makeDoc(),
9594
makeGo(),

0 commit comments

Comments
 (0)