THRIFT(1)
π thrift(1) β the code generator/compiler for Thrift IDL π
okay bestie, sit down, hydrate, and let me tell you about thrift(1) β it's giving compiler, it's giving iconic, and it's literally the whole reason your structs and services get to exist in, like, every language ever. π¦
β¨ SYNOPSIS β¨
thrift [options] source_file
that's it. that's the whole vibe. options, then your file. periodt. π
πΈ DESCRIPTION πΈ
So. Thrift is a framework for efficient serialization and RPC services β like, it takes your data and your remote calls and makes them fast and pretty across languages. β¨
The thrift compiler accepts a source file containing definitions of Thrift structs and services, and then generates the language-specific code to implement them. so you write it once, and it slays in every language. no cap. π
π OPTIONS π
-versionβ prints the compiler version and dips (exits). cute and quick. π«Ά-o DIRECTORYβ sets the output directory for thegen-*packages (default: the current directory, iykyk).-out DIRECTORYβ sets the ouput location for generated files. nogen-*folder will be created β it just drops the files right there, no folder drama. π-I DIRECTORYβ adds a directory to the list of directories searched forincludedirectives. stack 'em up, bestie. π-nowarnβ suppresses all compiler warnings. and the manpage itself is screaming (BAD!) at you, so likeβ¦ noted. π-strictβ strict compiler warnings on. the opposite energy of-nowarn, and honestly the healthier one. β-v[erbose]β verbose mode. it tells you everything. main character energy, but for logs. π£οΈ-r[ecurse]β also generate included files. yes, the included ones too. go off. π₯-debugβ parse debug trace to stdout. for when you need to see the whole thought process. π--gen STRINGβ generate code with a dynamically-registered generator.STRINGhas the form:
language[:key1=val1[,key2,[key3=val3]]]
Keys and values are options passed to the generator. Many options will not require values. For a complete list of supported generators, run thrift without arguments. (yes, just run it with nothing. it'll tell you everything it knows. π)
ngl,-nowarnis right there and it's literally labeledBAD!in the source material. do with that information what you will. π
π AUTHOR π
Thrift is a top-level project of the Apache Software Foundation, (see http://thrift.apache.org). so like, big deal. big slay. π
This manual page was written by Eric Evans <eevans@debian.org> for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
and that's the whole page, bestie π§ β this was thrift-compiler, dated July 9, 2012, living in THRIFT(1). go generate something gorgeous. π
π¦ where this page comes from
- debian bookworm: thrift-compiler 0.17.0-2+b2 Β· Apache-2.0
- debian trixie: thrift-compiler 0.19.0-4+b1 Β· Apache-2.0
- ubuntu jammy: thrift-compiler 0.16.0-2 Β· Apache-2.0
- ubuntu noble: thrift-compiler 0.19.0-2.1build5 Β· Apache-2.0
- ubuntu questing: thrift-compiler 0.19.0-4build1
- ubuntu resolute: thrift-compiler 0.22.0-3ubuntu1 Β· Apache-2.0
- ubuntu stonking: thrift-compiler 0.23.0-3ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms