commit | bc7b5dcadf68c04a61a9ad4241a051a74cb1932c | [log] [tgz] |
---|---|---|
author | Joshua Haberman <jhaberman@gmail.com> | Mon Jan 17 13:32:37 2022 -0800 |
committer | Joshua Haberman <jhaberman@gmail.com> | Mon Jan 17 13:35:04 2022 -0800 |
tree | c768e453dbb86a7c95d50d10f93ab667e5c90642 | |
parent | 43e36bb49f69edc950eb570d2718253ab762819a [diff] |
Ported protobuf's dtoa() function for text format and JSON.
μ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.