Crate thrift_compiler

Source
Expand description

This crate is a wrapper around fbthrift’s compiler. Its main usage is from within Cargo build scripts where it might be invoked to generate rust code from thrift files.

Structs§

Config
Builder for thrift compiler wrapper.

Enums§

GenContext
A thrift library ‘foo’ (say) results in two crates ‘foo’ and ‘foo_types’. We arrange that the thrift compiler wrapper be invoked from the build of both. The behavior of the wrapper is sensitive to the invocation context (‘foo’ vs ‘foo-types’) and this type is used to disambiguate.