blob: ba9c589d2bfda2b3336e88a6c32c3b6e53e6c5dc [file] [log] [blame] [view]
Wink Savillefbaaef92010-05-27 16:25:37 -07001Protocol Buffers - Google's data interchange format
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07002===================================================
3
Tamas Berghammerb0575e92016-06-03 17:53:47 -07004[![Build Status](https://travis-ci.org/google/protobuf.svg?branch=master)](https://travis-ci.org/google/protobuf) [![Build status](https://ci.appveyor.com/api/projects/status/73ctee6ua4w2ruin?svg=true)](https://ci.appveyor.com/project/protobuf/protobuf)
5
Wink Savillefbaaef92010-05-27 16:25:37 -07006Copyright 2008 Google Inc.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -07007
8https://developers.google.com/protocol-buffers/
Wink Savillefbaaef92010-05-27 16:25:37 -07009
Tamas Berghammerb0575e92016-06-03 17:53:47 -070010Overview
11--------
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070012
Tamas Berghammerb0575e92016-06-03 17:53:47 -070013Protocol Buffers (a.k.a., protobuf) are Google's language-neutral,
14platform-neutral, extensible mechanism for serializing structured data. You
15can find [protobuf's documentation on the Google Developers site](https://developers.google.com/protocol-buffers/).
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070016
Tamas Berghammerb0575e92016-06-03 17:53:47 -070017This README file contains protobuf installation instructions. To install
18protobuf, you need to install the protocol compiler (used to compile .proto
19files) and the protobuf runtime for your chosen programming language.
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070020
Tamas Berghammerb0575e92016-06-03 17:53:47 -070021Protocol Compiler Installation
22------------------------------
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070023
Tamas Berghammerb0575e92016-06-03 17:53:47 -070024The protocol compiler is written in C++. If you are using C++, please follow
25the [C++ Installation Instructions](src/README.md) to install protoc along
26with the C++ runtime.
Wink Savillefbaaef92010-05-27 16:25:37 -070027
Tamas Berghammerb0575e92016-06-03 17:53:47 -070028For non-C++ users, the simplest way to install the protocol compiler is to
29download a pre-built binary from our release page:
Wink Savillefbaaef92010-05-27 16:25:37 -070030
Tamas Berghammerb0575e92016-06-03 17:53:47 -070031 [https://github.com/google/protobuf/releases](https://github.com/google/protobuf/releases)
Wink Savillefbaaef92010-05-27 16:25:37 -070032
Tamas Berghammerb0575e92016-06-03 17:53:47 -070033In the downloads section of each release, you can find pre-built binaries in
34zip packages: protoc-$VERSION-$PLATFORM.zip. It contains the protoc binary
35as well as a set of standard .proto files distributed along with protobuf.
Wink Savillefbaaef92010-05-27 16:25:37 -070036
Tamas Berghammerb0575e92016-06-03 17:53:47 -070037If you are looking for an old version that is not available in the release
38page, check out the maven repo here:
Wink Savillefbaaef92010-05-27 16:25:37 -070039
Tamas Berghammerb0575e92016-06-03 17:53:47 -070040 [http://repo1.maven.org/maven2/com/google/protobuf/protoc/](http://repo1.maven.org/maven2/com/google/protobuf/protoc/)
Wink Savillefbaaef92010-05-27 16:25:37 -070041
Tamas Berghammerb0575e92016-06-03 17:53:47 -070042These pre-built binaries are only provided for released versions. If you want
43to use the github master version at HEAD, or you need to modify protobuf code,
44or you are using C++, it's recommended to build your own protoc binary from
45source.
Wink Savillefbaaef92010-05-27 16:25:37 -070046
Tamas Berghammerb0575e92016-06-03 17:53:47 -070047If you would like to build protoc binary from source, see the [C++ Installation
48Instructions](src/README.md).
Wink Savillefbaaef92010-05-27 16:25:37 -070049
Tamas Berghammerb0575e92016-06-03 17:53:47 -070050Protobuf Runtime Installation
51-----------------------------
Wink Savillefbaaef92010-05-27 16:25:37 -070052
Tamas Berghammerb0575e92016-06-03 17:53:47 -070053Protobuf supports several different programming languages. For each programming
54language, you can find instructions in the corresponding source directory about
55how to install protobuf runtime for that specific language:
Wink Savillefbaaef92010-05-27 16:25:37 -070056
Tamas Berghammerb0575e92016-06-03 17:53:47 -070057| Language | Source |
58|--------------------------------------|-------------------------------------------------------|
59| C++ (include C++ runtime and protoc) | [src](src) |
60| Java | [java](java) |
61| Python | [python](python) |
62| Objective-C | [objectivec](objectivec) |
63| C# | [csharp](csharp) |
64| JavaNano | [javanano](javanano) |
65| JavaScript | [js](js) |
66| Ruby | [ruby](ruby) |
67| Go | [golang/protobuf](https://github.com/golang/protobuf) |
68| PHP | TBD |
Wink Savillefbaaef92010-05-27 16:25:37 -070069
Wink Savillefbaaef92010-05-27 16:25:37 -070070
71Usage
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070072-----
Wink Savillefbaaef92010-05-27 16:25:37 -070073
74The complete documentation for Protocol Buffers is available via the
75web at:
76
Jeff Davidsona3b2a6d2014-09-15 16:29:06 -070077 https://developers.google.com/protocol-buffers/