1#ifndef IPFS_OPINIONATED_CONTEXT_H_
2#define IPFS_OPINIONATED_CONTEXT_H_
4#include <ipfs_client/ctx/ares_dns_txt_lookup.h>
5#include <ipfs_client/ctx/boost_beast_http.h>
7#include <ipfs_client/crypto/openssl_signature_verifier.h>
9#include <ipfs_client/client.h>
10#include <ipfs_client/partition.h>
14#if HAS_BOOST_BEAST && HAS_ARES && HAS_OPENSSL_EVP
16#define HAS_OPINIONATED_CONTEXT 1
18#include <google/protobuf/stubs/logging.h>
20namespace boost::asio {
24#pragma GCC diagnostic push
25#pragma GCC diagnostic ignored "-Wunused-variable"
26namespace google::protobuf {
28 LogLevel LOGLEVEL_DEBUG =
static_cast<LogLevel
>(-1);
29 LogLevel LOGLEVEL_TRACE =
static_cast<LogLevel
>(-2);
32#pragma GCC diagnostic pop
39std::shared_ptr<Client> start_default(boost::asio::io_context& io);
43#elif defined(_MSC_VER)
44#pragma message("Not ported to MSVC")
47 "You are missing dependencies necessary for using the opinionated context."