|
1 月之前 | |
---|---|---|
.. | ||
.bazelci | 1 月之前 | |
.github | 1 月之前 | |
bazel | 1 月之前 | |
benchmarks | 1 月之前 | |
cmake | 1 月之前 | |
doc | 1 月之前 | |
python | 1 月之前 | |
third_party | 1 月之前 | |
upb | 1 月之前 | |
upbc | 1 月之前 | |
.bazelignore | 1 月之前 | |
.bazelrc | 1 月之前 | |
.clang-format | 1 月之前 | |
.gitignore | 1 月之前 | |
BUILD | 1 月之前 | |
CONTRIBUTING.md | 1 月之前 | |
DESIGN.md | 1 月之前 | |
LICENSE | 1 月之前 | |
README.md | 1 月之前 | |
WORKSPACE | 1 月之前 | |
rename.sed | 1 月之前 | |
run_sed.sh | 1 月之前 |
μpb (often written 'upb') is a small protobuf implementation written in C.
upb is the core runtime for protobuf languages extensions in Ruby, PHP, and (soon) Python.
While upb offers a C API, the C API & ABI are not stable. For this reason, upb is not generally offered as a C library for direct consumption, and there are no releases.
upb has comparable speed to protobuf C++, but is an order of magnitude smaller in code size.
Like the main protobuf implementation in C++, it supports:
upb also supports some features that C++ does not:
However there are a few features it does not support:
protoc
.For Ruby, use RubyGems:
$ gem install google-protobuf
For PHP, use PECL:
$ sudo pecl install protobuf
Please see CONTRIBUTING.md.