1.upb(官方c语言版本,因bazel编译时,下载外网库失败,未编译成功。)
https://github.com/protocolbuffers/upb
bazel
https://github.com/bazelbuild/bazel/releases
bazel设置在环境变量中,使用bazel编译protobuf.
bazel build //examples/bazel:test_binary
2.nanopb(民间protobuf c版本,比较简单)
1.upb(官方c语言版本,因bazel编译时,下载外网库失败,未编译成功。)
https://github.com/protocolbuffers/upb
bazel
https://github.com/bazelbuild/bazel/releases
bazel设置在环境变量中,使用bazel编译protobuf.
bazel build //examples/bazel:test_binary
2.nanopb(民间protobuf c版本,比较简单)