Skip to main content

CFB code generator

Project description

CFB Encoding

Build Status

CFB (Canonical FlatBuffers) is a restricted variant of FlatBuffers for producing unequivocal transfer syntax.


Install the code geneartor as commane line utility:

pip install -U cfbc

First generate bfbs file from fbs:

flatc -b --schema example.fbs

Then generate rust files from bfbs:

cfbc example.bfbs

Use Verifier with flatbuffers rust

  • Add the generated <name> to the project in the same directory with the file <name> generated by flatc -r.
  • Add crate flatbuffers-verifier as a dependency in Cargo.toml.
  • Use the same version of flatbuffers as in flatbuffers-verifier.
flatbuffers-verifier = { git = "" }
flatbuffers = { git = "", rev = "4f10da8d99c1a7bc8c9c7d06d2092a689f171d29" }

The crate flatbuffers-verifier defines a function get_root, which is intended to replace the function with the same name in flatbuffers. This function will verify the buffer, and returns a Result to indicate whether the buffer is valid.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cfbc, version 0.1.9
Filename, size File type Python version Upload date Hashes
Filename, size cfbc-0.1.9-py3-none-any.whl (26.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size cfbc-0.1.9.tar.gz (14.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page