add flatbuffers
This commit is contained in:
35
flatbuffers/README.md
Normal file
35
flatbuffers/README.md
Normal 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
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user