docs/contrib/protoc-tools.md
OpenIM is passionate about ensuring that its suite of tools is custom-tailored to cater to the unique needs of its users. That commitment led us to develop and release our custom Protoc tool, version v1.0.0.
There are several reasons to choose our custom Protoc tool over generic open-source versions:
Access the official release of the Protoc tool on the OpenIM repository here: OpenIM Protoc Tool v1.0.0 Release
For Windows:
PATH environment variable to run the Protoc tool directly from the command line.For Linux:
chmod +x ./* to make the extracted files executable.PATH environment variable to run the Protoc tool directly from the command line.The OpenIM Protoc tool provides a multitude of options for parsing .proto files and generating output:
./protoc [OPTION] PROTO_FILES
Some of the key options include:
--proto_path=PATH: Specify the directory to search for imports.--version: Show version info.--encode=MESSAGE_TYPE: Convert a text-format message of a given type from standard input to binary on standard output.--decode=MESSAGE_TYPE: Convert a binary message of a given type from standard input to text format on standard output.--cpp_out=OUT_DIR: Generate C++ header and source.--java_out=OUT_DIR: Generate Java source file.... and many more. For a full list of options, run ./protoc --help or refer to the official documentation.