boostorg / beast

HTTP and WebSocket built on Boost.Asio in C++11

Home Page:http://www.boost.org/libs/beast

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Any possibility to make dependency on Boost not required(like ASIO does)?

TheStormN opened this issue · comments

Version of Beast

353

Steps necessary to reproduce the problem

It is a very nice thing that ASIO can be used without Boost. Given that Beast manly needs functionality from ASIO I think the request of such support should be not that far fetched.

All relevant compiler information

N/A

This is not planned, as there is an ongoing effort to make Boost modular. Therefore, you would only need to install the Boost libraries that Beast depends on.

By looking at the Beast dependencies, even if Boost becomes modular, it would still require quite a lot of stuff:

target_link_libraries(boost_beast
  INTERFACE
    Boost::asio
    Boost::assert
    Boost::bind
    Boost::config
    Boost::container
    Boost::core
    Boost::endian
    Boost::intrusive
    Boost::logic
    Boost::mp11
    Boost::optional
    Boost::smart_ptr
    Boost::static_assert
    Boost::static_string
    Boost::system
    Boost::throw_exception
    Boost::type_traits
    Boost::utility
    Boost::winapi
)

Most of these are already available in C++17, so I would really appreciate if I don't need to bring dozen of additional stuff which C++ supports anyway.