crowcpp-crow/1.1.0

Crow is a C++ microframework for running web services.
Recipe info
2024-02-02

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
crowcpp-crow/1.1.0

Using crowcpp-crow

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]
crowcpp-crow/1.1.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("crowcpp-crow/1.1.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): Crow
  • CMake target name(s): Crow::Crow
  • pkg-config file name(s): crowcpp-crow.pc

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

# ...
find_package(Crow REQUIRED)
# ...
target_link_libraries(YOUR_TARGET Crow::Crow)

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

#include "crow.h"
#include "crow/TinySHA1.hpp"
#include "crow/app.h"
#include "crow/ci_map.h"
#include "crow/common.h"
#include "crow/compression.h"
#include "crow/http_connection.h"
#include "crow/http_parser_merged.h"
#include "crow/http_request.h"
#include "crow/http_response.h"
#include "crow/http_server.h"
#include "crow/json.h"
#include "crow/logging.h"
#include "crow/middleware.h"
#include "crow/middleware_context.h"
#include "crow/middlewares/cookie_parser.h"
#include "crow/middlewares/cors.h"
#include "crow/middlewares/session.h"
#include "crow/middlewares/utf-8.h"
#include "crow/mime_types.h"
#include "crow/multipart.h"
#include "crow/mustache.h"
#include "crow/parser.h"
#include "crow/query_string.h"
#include "crow/returnable.h"
#include "crow/routing.h"
#include "crow/settings.h"
#include "crow/socket_adaptors.h"
#include "crow/task_timer.h"
#include "crow/utility.h"
#include "crow/version.h"
#include "crow/websocket.h"