chore: add flatbuffers support

This commit is contained in:
xuu
2025-03-03 22:10:47 -07:00
parent 7b884ca2f9
commit 7ff278e0cf
31 changed files with 2321 additions and 165 deletions

10
Makefile Normal file
View File

@@ -0,0 +1,10 @@
avro: twt-avro/gen.go
twt-avro/gen.go: lextwt.avro
go tool avro gen -pkg twt_avro -encoders lextwt.avro > twt-avro/gen.go
flatbuffers: twt-fbs/gen.go
twt-fbs/gen.go: lextwt.fbs
flatc -o twt-fbs --go lextwt.fbs
.ALL: avro flatbuffers