在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):calio/lua-capnproto开源软件地址(OpenSource Url):https://github.com/calio/lua-capnproto开源编程语言(OpenSource Language):Lua 90.2%开源软件介绍(OpenSource Introduction):lua-capnprotoCap’n Proto is an insanely fast data interchange format and capability-based RPC system. Lua-capnproto is a pure lua implementation of Cap'n Proto based on This project is still under early development and is not production-ready. SynopsisSuppose you have a Cap'n Proto file called example.capnp. You can compile this file like this:
The default output file is
Check out example/AddressBook.capnp and example/main.lua for how to use generated lua file. InstallationTo install lua-capnproto, you need to install Cap'n Proto http://kentonv.github.io/capnproto/install.html, LuaJIT http://luajit.org/install.html and luarocks http://luarocks.org/en/Download first.
Then you can install lua-capnproto using the following commands:
Let's compile an example file to test whether lua-capnproto was installed successfully:
Normally, you should see no errors and a file named "proto/example_capnp.lua" is generated. How to usePlease see my blog post on how to use lua-capnproto here. TestingIf you want to run unit tests, you need to install lunitx and lua-cjson:
If your Linux distribution have Lua 5.2 installed, using this instruction to install required lua modules. To run tests:
Limitations
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论