capnproto/1.0.2

Cap'n Proto serialization/RPC system.
Recipe info
2024-01-16

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
capnproto/1.0.2

Using capnproto

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]
capnproto/1.0.2
[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("capnproto/1.0.2")

    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): CapnProto
  • CMake target name(s): capnproto::capnproto
  • kj => CapnProto::kj
    capnp => CapnProto::capnp
    capnpc => CapnProto::capnpc
    kj-tls => CapnProto::kj-tls
    kj-gzip => CapnProto::kj-gzip
    kj-http => CapnProto::kj-http
    kj-test => CapnProto::kj-test
    kj-async => CapnProto::kj-async
    capnp-rpc => CapnProto::capnp-rpc
    capnp-json => CapnProto::capnp-json
    capnp-websocket => CapnProto::capnp-websocket
    
  • pkg-config file name(s): capnproto.pc
  • kj => kj.pc
    capnp => capnp.pc
    capnpc => capnpc.pc
    kj-tls => kj-tls.pc
    kj-gzip => kj-gzip.pc
    kj-http => kj-http.pc
    kj-test => kj-test.pc
    kj-async => kj-async.pc
    capnp-rpc => capnp-rpc.pc
    capnp-json => capnp-json.pc
    capnp-websocket => capnp-websocket.pc
    

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

# ...
find_package(CapnProto REQUIRED)
# ...
target_link_libraries(YOUR_TARGET capnproto::capnproto)

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

#include "capnp/any.h"
#include "capnp/blob.h"
#include "capnp/c++.capnp"
#include "capnp/c++.capnp.h"
#include "capnp/capability.h"
#include "capnp/common.h"
#include "capnp/compat/json.capnp"
#include "capnp/compat/json.capnp.h"
#include "capnp/compat/json.h"
#include "capnp/compat/std-iterator.h"
#include "capnp/compat/websocket-rpc.h"
#include "capnp/dynamic.h"
#include "capnp/endian.h"
#include "capnp/ez-rpc.h"
#include "capnp/generated-header-support.h"
#include "capnp/layout.h"
#include "capnp/list.h"
#include "capnp/membrane.h"
#include "capnp/message.h"
#include "capnp/orphan.h"
#include "capnp/persistent.capnp"
#include "capnp/persistent.capnp.h"
#include "capnp/pointer-helpers.h"
#include "capnp/pretty-print.h"
#include "capnp/raw-schema.h"
#include "capnp/rpc-prelude.h"
#include "capnp/rpc-twoparty.capnp"
#include "capnp/rpc-twoparty.capnp.h"
#include "capnp/rpc-twoparty.h"
#include "capnp/rpc.capnp"
#include "capnp/rpc.capnp.h"
#include "capnp/rpc.h"
#include "capnp/schema-lite.h"
#include "capnp/schema-loader.h"
#include "capnp/schema-parser.h"
#include "capnp/schema.capnp"
#include "capnp/schema.capnp.h"
#include "capnp/schema.h"
#include "capnp/serialize-async.h"
#include "capnp/serialize-packed.h"
#include "capnp/serialize-text.h"
#include "capnp/serialize.h"
#include "capnp/stream.capnp"
#include "capnp/stream.capnp.h"
#include "kj/arena.h"
#include "kj/array.h"
#include "kj/async-inl.h"
#include "kj/async-io.h"
#include "kj/async-prelude.h"
#include "kj/async-queue.h"
#include "kj/async-unix.h"
#include "kj/async-win32.h"
#include "kj/async.h"
#include "kj/cidr.h"
#include "kj/common.h"
#include "kj/compat/gtest.h"
#include "kj/compat/gzip.h"
#include "kj/compat/http.h"
#include "kj/compat/readiness-io.h"
#include "kj/compat/tls.h"
#include "kj/compat/url.h"
#include "kj/debug.h"
#include "kj/encoding.h"
#include "kj/exception.h"
#include "kj/filesystem.h"
#include "kj/function.h"
#include "kj/hash.h"
#include "kj/io.h"
#include "kj/list.h"
#include "kj/main.h"
#include "kj/map.h"
#include "kj/memory.h"
#include "kj/mutex.h"
#include "kj/one-of.h"
#include "kj/parse/char.h"
#include "kj/parse/common.h"
#include "kj/refcount.h"
#include "kj/source-location.h"
#include "kj/std/iostream.h"
#include "kj/string-tree.h"
#include "kj/string.h"
#include "kj/table.h"
#include "kj/test.h"
#include "kj/thread.h"
#include "kj/threadlocal.h"
#include "kj/time.h"
#include "kj/timer.h"
#include "kj/tuple.h"
#include "kj/units.h"
#include "kj/vector.h"
#include "kj/win32-api-version.h"
#include "kj/windows-sanity.h"