thrift

Thrift is a lightweight, language-independent software stack for point-to-point RPC implementation.

Latest version: 0.24.0

Add to xmake.lua

add_requires("thrift 0.24.0")

Learn how to add and link packages with Xmake →

Information

License
Apache-2.0
Recipe updated
2026-07-25T09:49:22.000Z

Platforms

  • linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
  • cross: i386, x86_64, arm, armv7, arm64, mips, mips64, mips64el, riscv, riscv64, loong64, s390x, ppc, ppc64, ppc64el, sh4, sparc64
  • macosx: x86_64, arm64
  • windows: x86, x64, arm, arm64, arm64ec

Options

compiler
Build compiler · Type: boolean · Default: false
glib
Enable glib support. · Type: boolean · Default: false
libevent
Enable libevent support. · Type: boolean · Default: false
openssl
Enable openssl support. · Type: boolean · Default: false
qt5
Enable qt5 support. · Type: boolean · Default: false
zlib
Enable zlib support. · Type: boolean · Default: false

Versions

  • v0.16.0
  • v0.17.0
  • v0.18.0
  • v0.18.1
  • v0.19.0
  • v0.20.0
  • v0.21.0
  • v0.22.0
  • v0.23.0
  • v0.24.0

Dependencies

Install with xrepo

Install the package independently of a project and inspect its available configuration.

install

xrepo install "thrift 0.24.0"

show info

xrepo info "thrift"

Link a library to your target

Declare the requirement, then attach the library to the target that uses it.

xmake.lua

add_requires("thrift 0.24.0")

target("demo")
    set_kind("binary")
    add_files("src/*.cpp")
    add_packages("thrift")

Open a package environment

Open a shell with the environment exported by this package. Use the executable names documented by the package.

enter shell

xrepo env -b "thrift 0.24.0" shell