Skip to content

Commit 03f3300

Browse files
committed
Initial commit.
0 parents  commit 03f3300

File tree

6 files changed

+2265
-0
lines changed

6 files changed

+2265
-0
lines changed

README.txt

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Google protobuf support for Lua
2+
-------------------------------
3+
4+
5+
This project offers a simple C library for basic protobuf wire format
6+
encode/decode, it split to three modules:
7+
- pb.decoder: a wire format decode module.
8+
- pb.buffer: a buffer implement that use to encode basic types into
9+
protobuf's wire format.
10+
- pb.conv: a module to convert between integers in protobuf.
11+
12+
Use the C module, one can basicly maintain protobuf data. A test module (WIP)
13+
used to make high level interface to Lua. now it can produce types.lua, a type
14+
describe module generated to help decode protobuf data to Lua table. Now it
15+
can bootstrap itself (i.e. to decode descriptor.pb, and produce types.lua
16+
itself).
17+
18+
this module is still work-in-progress. Some works to do:
19+
- Lua modules handle high level interface to decode/encode protobuf data
20+
from/to Lua table.
21+
- Lua modules to generate pure C module code to enable the ability that
22+
write Lua plugins for protoc on Windows.
23+
protoc need plugins' stdin/stdout works on binary mode. but that's
24+
impossible without modify the Lua code if you use VS compiler and /MT
25+
flag (link with static standard C library).
26+
27+

descriptor.pb

3.83 KB
Binary file not shown.

0 commit comments

Comments
 (0)