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 11ad1bd277 Update Ruby gem version to 3.0.0.alpha.2.0. 10 years ago
..
ext/google/protobuf_c Merge pull request #211 from isaiah/map_inspect 10 years ago
lib/google Rename protobuf Ruby module to google/protobuf and rework its build 10 years ago
tests Merge pull request #211 from isaiah/map_inspect 10 years ago
README.md Updated Ruby README. 10 years ago
Rakefile Rename protobuf Ruby module to google/protobuf and rework its build 10 years ago
google-protobuf.gemspec Update Ruby gem version to 3.0.0.alpha.2.0. 10 years ago

README.md

This directory contains the Ruby extension that implements Protocol Buffers functionality in Ruby.

The Ruby extension makes use of generated Ruby code that defines message and enum types in a Ruby DSL. You may write definitions in this DSL directly, but we recommend using protoc's Ruby generation support with .proto files. The build process in this directory only installs the extension; you need to install protoc as well to have Ruby code generation functionality.

Installation

To build this Ruby extension, you will need:

  • Rake
  • Bundler
  • Ruby development headers
  • a C compiler

First, install the required Ruby gems:

$ sudo gem install bundler rake rake-compiler rspec rubygems-tasks

Then build the Gem:

$ rake gem
$ gem install pkg/protobuf-$VERSION.gem

This gem includes the upb parsing and serialization library as a single-file amalgamation. It is up-to-date with upb git commit 535bc2fe2f2b467f59347ffc9449e11e47791257.