Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frol/flatc-rust
FlatBuffers compiler (flatc) as API (with focus on transparent `.fbs` to `.rs` code-generation via Cargo build scripts integration)
https://github.com/frol/flatc-rust
flatbuffers helpers rust rust-crate rust-library
Last synced: 3 days ago
JSON representation
FlatBuffers compiler (flatc) as API (with focus on transparent `.fbs` to `.rs` code-generation via Cargo build scripts integration)
- Host: GitHub
- URL: https://github.com/frol/flatc-rust
- Owner: frol
- License: apache-2.0
- Created: 2019-01-15T19:38:46.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T18:48:19.000Z (about 1 year ago)
- Last Synced: 2024-04-30T08:32:55.699Z (10 months ago)
- Topics: flatbuffers, helpers, rust, rust-crate, rust-library
- Language: Rust
- Homepage:
- Size: 31.3 KB
- Stars: 102
- Watchers: 6
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-rust-cn - frol/flatc-rust - ci.org/frol/flatc-rust.svg?branch=master">](https://travis-ci.org/frol/flatc-rust) (Libraries / Encoding)
- awesome-rust - frol/flatc-rust - ci.org/frol/flatc-rust.svg?branch=master">](https://travis-ci.org/frol/flatc-rust) (Libraries / Encoding)
- awesome-rust - frol/flatc-rust
- awesome-rust-cn - frol/flatc-rust
- awesome-rust-zh - frol/flatc-rust - 用于 Cargo 构建脚本的 FlatBuffers 编译器(flatc)集成[<img src="https://api.travis-ci.org/frol/flatc-rust.svg?branch=master">](https://travis-ci.org/frol/flatc-rust) (库 / 编码(Encoding))
- awesome-rust - frol/flatc-rust - FlatBuffers compiler (flatc) integration for Cargo build scripts (Libraries / Encoding)
- awesome-rust - frol/flatc-rust - ci.org/frol/flatc-rust.svg?branch=master">](https://travis-ci.org/frol/flatc-rust) (库 Libraries / 加密 Encoding)
- fucking-awesome-rust - frol/flatc-rust - FlatBuffers compiler (flatc) integration for Cargo build scripts (Libraries / Encoding)
- fucking-awesome-rust - frol/flatc-rust - FlatBuffers compiler (flatc) integration for Cargo build scripts (Libraries / Encoding)
README
# FlatBuffers flatc API for Rust [![Crates.io Version](https://img.shields.io/crates/v/flatc-rust)](https://crates.io/crates/flatc-rust) [![Documentation](https://docs.rs/flatc-rust/badge.svg)](https://docs.rs/flatc-rust)
This crate provides a programmatical way to invoke `flatc` command (e.g. from
`build.rs`) to generate Rust (or, in fact, any other language) helpers to work
with [FlatBuffers](https://google.github.io/flatbuffers).NOTE: You will still need
[`flatc` utility](https://google.github.io/flatbuffers/flatbuffers_guide_using_schema_compiler.html)
version [1.10.0+](https://github.com/google/flatbuffers/releases/tag/v1.10.0) installed (there are
[windows binary releases](https://github.com/google/flatbuffers/releases), `flatbuffers-compiler`
package for Debian/Ubuntu, `flatbuffers` packages for
[Arch Linux](https://archlinux.org/packages/extra/x86_64/flatbuffers/) and
[conda](https://anaconda.org/conda-forge/flatbuffers) [Windows, Linux, MacOS]).## Usage and Examples
Please, refer to the [documentation](https://docs.rs/flatc-rust#examples) for usage instructions
and examples.## Acknowledgements
The design of the API was inspired by
[protoc-rust](https://github.com/stepancheg/rust-protobuf/tree/master/protoc-rust),
[protoc](https://github.com/stepancheg/rust-protobuf/tree/master/protoc), and
[capnpc](https://github.com/capnproto/capnproto-rust/tree/master/capnpc).## License
This project is licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0))
* MIT license ([LICENSE-MIT](LICENSE-MIT) or [http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT))at your option.