descriptionnone
repository URLhttps://github.com/protocolbuffers/protobuf.git
ownerstefan.naewe+rr@gmail.com
last changeFri, 26 Apr 2024 18:14:02 +0000 (26 11:14 -0700)
last refreshSat, 27 Apr 2024 10:49:04 +0000 (27 12:49 +0200)
content tags
add:
README.md

Protocol Buffers - Google's data interchange format

OpenSSF Scorecard

Copyright 2023 Google LLC

Overview

Protocol Buffers (a.k.a., protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data. You can learn more about it in protobuf's documentation.

This README file contains protobuf installation instructions. To install protobuf, you need to install the protocol compiler (used to compile .proto files) and the protobuf runtime for your chosen programming language.

Working With Protobuf Source Code

Most users will find working from supported releases to be the easiest path.

If you choose to work from the head revision of the main branch your build will occasionally be broken by source-incompatible changes and insufficiently-tested (and therefore broken) behavior.

If you are using C++ or otherwise need to build protobuf from source as a part of your project, you should pin to a release commit on a release branch.

This is because even release branches can experience some instability in between release commits.

Protobuf Compiler Installation

The protobuf compiler is written in C++. If you are using C++, please follow the C++ Installation Instructions to install protoc along with the C++ runtime.

For non-C++ users, the simplest way to install the protocol compiler is to download a pre-built binary from our GitHub release page.

In the downloads section of each release, you can find pre-built binaries in zip packages: protoc-$VERSION-$PLATFORM.zip. It contains the protoc binary as well as a set of standard .proto files distributed along with protobuf.

If you are looking for an old version that is not available in the release page, check out the Maven repository.

These pre-built binaries are only provided for released versions. If you want to use the github main version at HEAD, or you need to modify protobuf code, or you are using C++, it's recommended to build your own protoc binary from source.

If you would like to build protoc binary from source, see the C++ Installation Instructions.

Protobuf Runtime Installation

Protobuf supports several different programming languages. For each programming language, you can find instructions in the corresponding source directory about how to install protobuf runtime for that specific language:

LanguageSource
C++ (include C++ runtime and protoc)src
Javajava
Pythonpython
Objective-Cobjectivec
C#csharp
Rubyruby
Goprotocolbuffers/protobuf-go
PHPphp
Dartdart-lang/protobuf
JavaScriptprotocolbuffers/protobuf-javascript

Quick Start

The best way to learn how to use protobuf is to follow the tutorials in our developer guide.

If you want to learn from code examples, take a look at the examples in the examples directory.

Documentation

The complete documentation is available at the Protocol Buffers doc site.

Support Policy

Read about our version support policy to stay current on support timeframes for the language libraries.

Developer Community

To be alerted to upcoming changes in Protocol Buffers and connect with protobuf developers and users, join the Google Group.

shortlog
16 hours ago Eric Saloupb: implement .mergeFromBuffer() on GeneratedMessage... main
28 hours ago Marcel HlopkoEnsure that the rust_proto_library is in the same packa...
39 hours ago Protobuf Team BotChange the arena.hpp ::Fuse return type to bool to...
39 hours ago Marcel HlopkoRemove obsolete logic related to cc_proto_library
42 hours ago Protobuf Team BotAuto-generate files after cl/628095780
42 hours ago Hong ShinEnsure the appropriate upb functions taking non-const...
42 hours ago Eric Saloupb: begin to delete the old Dart v2 plugin code
43 hours ago Protobuf Team BotIntroduce `MessageDescriptor.IsMapType` in C# reflectio...
44 hours ago Protobuf Team BotAdd a TODO to use Layout::WithStaticSizes in SerialAren...
2 days ago Jakob BuchgraberImplement Arena::fuse()
2 days ago Marcel HlopkoUse the main/proper proto_common
2 days ago Protobuf Team BotCreate the concept of 'owned data' in upb/rust as a...
2 days ago Protobuf Team BotAuto-generate files after cl/627794151
2 days ago Jie LuoCatch all the exceptions in python JSON ParseDict and...
2 days ago Eric Saloupb: fix Dart empty imports
2 days ago Protobuf Team BotAdd a collision-avoidance behavior to the Rust Proto...
...
tags
9 days ago v5.27.0-rc1 Tag release v5.27.0-rc1
9 days ago v3.27.0-rc1 Tag release v3.27.0-rc1
9 days ago v27.0-rc1 Tag release v27.0-rc1
9 days ago v27-dev Tag commit the v27-dev branch was...
4 weeks ago v5.26.1 Tag release v5.26.1
4 weeks ago v3.26.1 Tag release v3.26.1
4 weeks ago v26.1 Tag release v26.1
6 weeks ago v5.26.0 Tag release v5.26.0
6 weeks ago v3.26.0 Tag release v3.26.0
6 weeks ago v26.0 Tag release v26.0
8 weeks ago v5.26.0-rc3 Tag release v5.26.0-rc3
8 weeks ago v3.26.0-rc3 Tag release v3.26.0-rc3
8 weeks ago v26.0-rc3 Tag release v26.0-rc3
2 months ago v4.25.3 Tag release v4.25.3
2 months ago v3.25.3 Tag release v3.25.3
2 months ago v25.3 Tag release v25.3
...
heads
14 hours ago test_627772450
16 hours ago main
18 hours ago test_628430421
19 hours ago test_628408981
19 hours ago 3.19.x
22 hours ago test_627827108
26 hours ago test_628324962
36 hours ago test_627104633
36 hours ago test_627796728
38 hours ago test_628170432
38 hours ago test_627823713
2 days ago test_627848748
2 days ago test_627396755
2 days ago test_627746853
2 days ago test_627693770
3 days ago test_627644568
...