flatbuffers-tonic-build 0.1.0

gRPC with flatbuffers code generator.
Documentation
1
2
3
4
5
6
7
8
9
10
// Compiles flatbuffers rust files.

use std::path::Path;

pub(crate) fn compile_flat_buffer_self(fbs_path: &Path) {
    use flatbuffers_build::BuilderOptions;
    BuilderOptions::new_with_files([fbs_path])
        .compile()
        .expect("flatbuffer compilation failed");
}