| layout | page |
|---|---|
| title | Design & project |
| tagline |
{% include JB/setup %}
Note! This page describes the general design and project-setup for Threft.io. As the project is still in it's early stages a lot of what is described here is not actually finished yet or not even in development! More information will become available gradually on subpages under /design, which will be linked from this page.
Contribute? Contributions are very welcome! Join threft-dev and/or find out how to help with development.
Rather than creating new idea's and solutions: the Threft.io design borrows the best idea's from other projects such as Protobuf, Thrift and Go. For instance, even though compromises must be made to stay compatible.
The Threft.io parser can parse two types of files.
The first is the existing Thrift IDL, with the .thrift file extension.
The second is the more strict Threft.io IDL, with the .threft file extension.
The Threft.io project consists of multiple commands.
- threft
-
Reads .thrift files and executes a generator with tidm-json.
source
- threft-gen-go
-
Generates Go code from given tidm-json.
source
- threft-gen-html
-
Generates HTML documentation from given tidm-json.
source
The project commands are backed by packages.
- threft/tidm
-
Threft Interface Definition Model. Datastructure that can be marhsalled to/from tidm-json. Also contains IDL parsing code.
source | godoc

