Protocol Buffers - Google's data interchange format (grpc依赖) https://developers.google.com/protocol-buffers/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Chris Fallin 87a18f3774 Support oneof defs in upb. 10 years ago
..
README.md Sync to Google-internal development. 10 years ago
extconf.rb Sync to Google-internal development. 10 years ago
upb.c Support oneof defs in upb. 10 years ago

README.md

Ruby extension

To build, run (from the top upb directory):

$ make ruby
$ sudo make install

To test, run:

$ make rubytest

The binding currently supports:

- loading message types from descriptors.
- constructing message instances
- reading and writing their members
- parsing and serializing the messages
- all data types (including nested and repeated)

The binding does not currently support:

- defining message types directly in Ruby code.
- generating Ruby code for a .proto file.
- type-checking for setters
- homogenous / type-checked arrays
- default values

Because code generation is not currently implemented, the interface to import a specific message type is kind of clunky for the moment.