add flatbuffers

This commit is contained in:
2020-06-25 23:22:18 +08:00
parent b8c99ede5b
commit fa722f19cf
6 changed files with 662 additions and 0 deletions

35
flatbuffers/README.md Normal file
View File

@@ -0,0 +1,35 @@
# Install `flatc`
## Install `cmake`
https://cmake.org/install/
## Get `flatbuffers`
```shell
% git clone https://github.com/google/flatbuffers.git
```
## Make
```shell
% cmake -G "Unix Makefiles"
% make
% make install
```
```shell
% flatc --version
```
# Compile `fbs`
```shell
% flatc --rust file.fbs
```