Repository navigation
Releases
grpc-m 1.83.0.1
Module wrapper for upstream 1.83.0.1. New mwrap package identities become installable after mcpp-index publication; see the bilingual README for the tested support scope.
grpc-m 1.83.0
Module wrapper for upstream 1.83.0. New mwrap package identities become installable after mcpp-index publication; see the bilingual README for the tested support scope.
v1.83.0-4
grpcgen 分层控制 L0–L3:每一层都是下一层的默认值,不是另一条路。
- L1 声明式旋钮:
extra_dirs(既生成又搜索)、imports(只搜索)、mock、protoc_args - L2 插件列表:
grpc = true降级为plugins = {cpp()}的语法糖,第三方 protoc 插件成为一等公民 - L3 plan / submit 分离:
generate_all(opt)≡submit(plan_all(opt)),plan_entries((root,name))公开,再离谱的需求也不必绕开规则 - description 自述:
protoc:orders (+grpc +mock, -Iproto -I../shared-proto)—— 完整 argv 仍由引擎写在 build.ninja 里,规则不造第二个真相来源 - 新增
examples/advanced(共享 proto 树 + mock + plan 改写)与examples/shared-proto
CI:example 的构建时间已使 job 触及 120 分钟上限,超时上限提到 210(真正的成本是同一个 gRPC 串行编四遍,拆矩阵是后续独立工作)。
grpc-m 1.83.0 (packaging 3)
需要 mcpp 2026.8.6.2。
打包第 3 版:codegen 的工具链由本包交给用户,使用者从四条依赖降到一条,build.mcpp 从「逐个列 .proto」降到一行。
[dependencies.grpc]
grpc = { version = "1.83.0", features = ["codegen"] }import mcpp; import grpcgen;
int main() { return grpcgen::generate_all() ? 0 : 1; }gRPC 本身与 plugin/ rules/ 的 C++ 代码未变;变的是 [feature-deps.codegen] 用 reexport = true 把 protoc、grpc_cpp_plugin 与 grpcgen 规则模块交给消费者,以及 grpcgen::generate_all() 借 rerun_if_changed_glob 扫 proto/——在 mcpp 2026.8.6.2 之前,扫目录是结构性不安全的:新增一个 .proto 不改变任何已声明文件的哈希,程序不重跑,新文件静默不生成。
grpc-m 1.83.0 (packaging 2)
与 v1.83.0 同一份 gRPC 1.83.0,src/ / include/ / third_party/ 逐字节相同。本 tag 存在的唯一原因是归档里多了两样东西:
plugin/——grpc_cpp_plugin(上游src/compiler/*),作为 mcpp host tool 构建rules/——grpcgen,把 protoc + grpc_cpp_plugin 的调用收成一条可 import 的构建规则,消费者的build.mcpp因此只剩 3 行
v1.83.0 的归档里没有这两个目录,而索引对它的 sha256 已经生效 —— 移动 tag 会让已发布的 [email protected] 校验失败,所以另起一个。
包身份
三个包按"命名空间说的是这个库是谁的"归位:
| 包 | 代码是谁的 | 消费者怎么写 |
|---|---|---|
grpc:grpc |
上游 grpc/grpc | grpc.grpc = "1.83.0" |
grpc:grpc-plugin |
上游 src/compiler/* |
grpc.grpc-plugin = { version = "1.83.0", tools = ["grpc_cpp_plugin"] } |
mcpplibs:grpcgen |
本仓库自己写的 163 行 | grpcgen = { version = "1.83.0", host-module = true } |
版本保持 1.83.0 —— 它本就与上游 gRPC 对齐。规则见 mcpp-index#163。
grpc-m 1.83.0
gRPC 1.83.0 built from upstream source by mcpp.
- Vendored upstream
src/+include/with zero patches; abseil / protobuf(+upb) / re2 / c-ares / OpenSSL / zlib come from mcpp-index, not a second vendored copy. - No CMake, no Bazel, no configure step.
import grpc;C++23 module over the public API (the import goes after every textual#include— see the README).aresfeature on by default, matching upstream;default-features = falseturns it off.examples/helloworldstands a real server on loopback and makes a real unary RPC.
linux + macOS. windows waits on compat.openssl gaining a windows entry (mcpp-index#150); this package's windows flags are already in place.