libuv/1.48.0

A multi-platform support library with a focus on asynchronous I/O
Recipe info
2024-02-09

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
libuv/1.48.0

Using libuv

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
libuv/1.48.0
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("libuv/1.48.0")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): libuv
  • CMake target name(s): uv
  • pkg-config file name(s): libuv-static.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(libuv REQUIRED)
# ...
target_link_libraries(YOUR_TARGET uv)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the libuv homepage listed above:

#include "uv.h"
#include "uv/aix.h"
#include "uv/bsd.h"
#include "uv/darwin.h"
#include "uv/errno.h"
#include "uv/linux.h"
#include "uv/os390.h"
#include "uv/posix.h"
#include "uv/sunos.h"
#include "uv/threadpool.h"
#include "uv/tree.h"
#include "uv/unix.h"
#include "uv/version.h"
#include "uv/win.h"