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 the gen-* packages (default: the current directory, iykyk).
  • -out DIRECTORY β€” sets the ouput location for generated files. no gen-* 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 for include directives. 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. STRING has 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, -nowarn is right there and it's literally labeled BAD! 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. πŸ’œ