Skip to main content

CFB Encoding

Build Status

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

Usage

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>_generated_verifier.rs to the project in the same directory with the file <name>_generated.rs 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 = "https://github.com/nervosnetwork/cfb" }
flatbuffers = { git = "https://github.com/google/flatbuffers", 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.

Metadata

Release files for cfbc 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cfbc 0.1.9
File Size Uploaded
cfbc-0.1.9.tar.gz 14.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cfbc 0.1.9
File Interpreter ABI Platform
cfbc-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 40.3 kB

Release files / cfbc-0.1.9.tar.gz

Download URL cfbc-0.1.9.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
48395019b28f1d03cdbe0fde42c388a473fa0cba03a0342c9f26db8903bbe8ae
BLAKE2b-256 checksum
How to use checksums
ab24bf450c6b97ef078acdb8c4eee5aa89c73a9759721f157cc0d46acd4cfc19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release files / cfbc-0.1.9-py3-none-any.whl

Download URL cfbc-0.1.9-py3-none-any.whl
Size 26.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fe3cb6ca728650032df85c4c3fe8a6785f553ea08d94848c4dbdd2359ed5579
BLAKE2b-256 checksum
How to use checksums
032739375aa806b92715a904ac7bf257a4635d6efe32f319c4a2eb45ece61d31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page