Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 987 Bytes

README.md

File metadata and controls

43 lines (27 loc) · 987 Bytes

Protobuf setup

This folder contains the protobuf-definition for the token.

Generating source files

C++, C#, Java, JavaScript, Kotlin, Obj-C, PHP, Python, Ruby

These languages are built into the protoc compiler. Install the compiler via

brew install protobuf

and then run

protoc src/main/protobuf/token.proto --objc_out=. --java_out=. # for more languages see protoc --help

Swift

Install the official plugin via

brew install swift-protobuf

and run

protoc src/main/protobuf/token.proto --swift_out=.

Scala

Download the latest release from github.com/scalapb/ScalaPB/ and run

protoc src/main/protobuf/token.proto --plugin=/path/to/download/protoc-gen-scala --scala_out=src/main/scala

(For more info see this guide.)