在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):sean-lin/protoc-gen-lua开源软件地址(OpenSource Url):https://github.com/sean-lin/protoc-gen-lua开源编程语言(OpenSource Language):Lua 74.8%开源软件介绍(OpenSource Introduction):protoc-gen-luaGoogle's Protocol Buffers project, ported to Lua "Protocol Buffers" is a binary serialization format and technology, released to the open source community by Google in 2008. There are various implementations of Protocol Buffers and this is for Lua. InstallInstall python runtime and the protobuf 2.3 for python. checkout the code. Compile the C code:
Make a link to protoc-gen-lua in your $PATH:
Then you can compile the .proto like this:
Quick ExampleYou write a .proto file like this: person.proto :
Then you compile it. Then, make sure that protobuf/ in package.cpath and package.path, you use that code like this:
The API of this library is similar the protobuf library for python. For a more complete example, read the python documentation. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论