36 lines
322 B
Markdown
36 lines
322 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
|
|
```
|
|
|
|
|
|
|
|
|