Skip to content

protobuf-m 35.1: Protocol Buffers as import mcpplibs.mwrap.protobuf (+ protogen) - #1

Merged
Sunrisepeak merged 12 commits into
mainfrom
mwrap-35.1
Nov 19, 2026
Merged

Sunrisepeak merged 12 commits into
mainfrom
mwrap-35.1

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Plan: mcpplibs/mcpp-index .agents/docs/2026-11-19-add-openssl-abseil-protobuf-mwrap-plan.md §6.3, §6.5, §5.4.

Form. Thin wrapper over compat.protobuf 35.1 (over compat.abseil 20250512.1). Package mcpplibs.mwrap.protobuf 35.1, tag mwrap-35.1. Platforms linux (x86_64, aarch64), macos, windows, emscripten.

Modules. root mcpplibs.mwrap.protobuf (710 names: messages, descriptors, reflection, arenas, repeated fields, maps, TextFormat, the well-known types; re-exports the rest), .io (33), .util (51: json, MessageDifferencer, TimeUtil + operators, FieldMaskUtil, delimited), .compiler (7: Importer, Parser … — already in the runtime, no feature), .macros (6 version constants + GOOGLE_PROTOBUF_WIRE_FORMAT_MAKE_TAG), .io.gzip (feature gzip). No absl name exported. Derived by tools/surface.py (clang AST), audited by tools/check_exports.py (re-derived on the Linux LLVM row).

Features. codegen (protoc host tool, same release, + the protogen rule), gzip, upb (forwarded so gRPC + protobuf link one protobuf).

protogen 35.1 (rules/, mcpplibs.protogen, module protogen): the generic protoc layer of grpc-m's grpcgen (same L0–L3 API), messages only by default, plugins as a parameter, plus .lite and .descriptor_set. It asks for compat.protobuf by qualified name: next to this package, dep_dir("protobuf") is ambiguous.

Verification (local, Linux x86_64, GCC 16.1 and LLVM 23.1.3): 4 test binaries (wire bytes pinned, text/JSON round trips, Timestamp/Duration/Struct/Any/wrappers, MessageDifferencer, FieldMaskUtil, coded + delimited streams, Arena, a .proto parsed at run time + syntax error, macros, header mixing); examples/gzip and examples/codegen (protoc built, code generated, used with the module) run; the message template instantiated and run.

Thin wrapper over compat.protobuf 35.1 (over compat.abseil 20250512.1).
tools/surface.py reads the release headers with clang and writes the
modules: the root (messages, descriptors, reflection, the well-known
types), io, util, compiler, macros, and io.gzip behind the gzip feature.
On little-endian aarch64 parse_context.h's VarintParse<T> calls the static
VarintParseSlowArm overloads; Clang instantiates it at the end of the module
unit, where internal-linkage entities of the fragment are not visible
(Linux arm64 and macOS LLVM rows). src/detail/epilogue.hpp instantiates the
two specialisations explicitly in the fragment.
…s with the root and a namespace-scope decltype)
@Sunrisepeak
Sunrisepeak merged commit d5ffe2d into main Nov 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant