Home

Awesome

Build Status

protobuf2

Protocol buffers are a language-neutral, platform-neutral extensible mechanism for serializing structured data. See documentation

Maintainers

Type of Package

Binary package

Use as Dependency

Binary packages can be set as runtime or build time dependencies. See Defining your dependencies for more information.

To add core/protobuf2 as a dependency, you can add one of the following to your plan file.

Buildtime Dependency

pkg_build_deps=(core/protobuf2)

Runtime dependency

pkg_deps=(core/protobuf2)

Use as Tool

Installation

To install this plan, you should run the following commands to first install, and then link the binaries this plan creates.

hab pkg install core/protobuf2 --binlink

will add the following binary to the PATH:

For example:

$ hab pkg install core/protobuf2 --binlink
» Installing core/protobuf2
☁ Determining latest version of core/protobuf2 in the 'stable' channel
☛ Verifying core/protobuf2/2.0.0/20200310022658
...
...
✓ Installed core/protobuf2/2.0.0/20200310022658
★ Install of core/protobuf2/2.0.0/20200310022658 complete with 4 new packages installed.
» Binlinking protoc from core/protobuf2/2.0.0/20200310022658 into /bin
★ Binlinked protoc from core/protobuf2/2.0.0/20200310022658 to /bin/protoc

Using an example binary

You can now use the binary as normal. For example:

/bin/protoc --help or protoc --help

$ protoc --help
Usage: protoc [OPTION] PROTO_FILES
Parse PROTO_FILES and generate output based on the options given:
  -IPATH, --proto_path=PATH   Specify the directory in which to search for
                              imports.  May be specified multiple times;
...
...