42 lines
509 B
Markdown
42 lines
509 B
Markdown
|
|
|
|
# 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
|
|
```
|
|
|
|
|
|
----
|
|
|
|
FlatBuffers Binary Format
|
|
|
|
* https://qiita.com/termoshtt/items/c337cd67e678bac2c795#flatbuffers-binary-format
|
|
* https://github.com/dvidelabs/flatcc/blob/master/doc/binary-format.md
|
|
|
|
|