protobuf.cr:Protobuf 生成器、编码器和解码器

时间:2021-08-05 05:19:09
【文件属性】:
文件名称:protobuf.cr:Protobuf 生成器、编码器和解码器
文件大小:26KB
文件格式:ZIP
更新时间:2021-08-05 05:19:09
Crystal 原始缓冲区 用于解码、编码和生成 protobuf 消息的水晶碎片。 安装 将此添加到您的应用程序的shard.yml : dependencies : protobuf : github : jeromegn/protobuf.cr 1.安装protobuf macOS: brew install protobuf Ubuntu sudo apt-get install -y protobuf-compiler 2.安装protoc插件 苹果系统: brew install jeromegn/tap/protoc-gen-crystal Ubuntu: crystal build bin/protoc-gen-crystal.cr -o ~/bin/protoc-gen-crystal 用法 生成.pb.cr文件 Protobuf 提供protoc可执行文件
【文件预览】:
protobuf.cr-master
----.gitignore(202B)
----src()
--------protobuf.cr(851B)
--------protobuf()
--------enum.cr(399B)
----bin()
--------protoc-gen-crystal.cr(248B)
----LICENSE(1KB)
----bench()
--------README.md(995B)
--------simple.cr(1KB)
----.github()
--------workflows()
----spec()
--------protobuf_spec.cr(72B)
--------protobuf()
--------spec_helper.cr(41B)
--------fixtures()
----README.md(4KB)
----shard.yml(274B)

网友评论