libhv

Like libevent, libev, and libuv, libhv provides event-loop with non-blocking IO and timer, but simpler api and richer protocols.

Latest version: 1.3.4

Add to xmake.lua

add_requires("libhv 1.3.4")

Learn how to add and link packages with Xmake →

Information

License
BSD-3-Clause
Recipe updated
2026-01-16T04:52:31.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
  • android: armeabi, armeabi-v7a, arm64-v8a, riscv64, x86, x86_64, mips, mip64
  • windows: x86, x64, arm, arm64, arm64ec
  • iphoneos: arm64, x86_64
  • macosx: x86_64, arm64

Options

consul
compile consul · Type: boolean · Default: false
curl
with curl library · Type: boolean · Default: false
gnutls
with gnutls library · Type: boolean · Default: false
http
compile http · Type: boolean · Default: true
http_client
compile http/client · Type: boolean · Default: true
http_server
compile http/server · Type: boolean · Default: true
ipv6
enable ipv6 · Type: boolean · Default: false
mbedtls
with mbedtls library · Type: boolean · Default: false
multimap
use MultiMap · Type: boolean · Default: false
nghttp2
with nghttp2 library · Type: boolean · Default: false
openssl
with openssl library · Type: boolean · Default: false
protocol
compile protocol · Type: boolean · Default: false
uds
enable Unix Domain Socket · Type: boolean · Default: false
windump
enable Windows MiniDumpWriteDump · Type: boolean · Default: false

Versions

  • v1.0.0
  • v1.1.0
  • v1.1.1
  • v1.2.1
  • v1.2.2
  • v1.2.3
  • v1.2.4
  • v1.2.6
  • v1.3.0
  • v1.3.1
  • v1.3.2
  • v1.3.3
  • v1.3.4

Dependencies

Install with xrepo

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

install

xrepo install "libhv 1.3.4"

show info

xrepo info "libhv"

Link a library to your target

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

xmake.lua

add_requires("libhv 1.3.4")

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

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 "libhv 1.3.4" shell