You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the first significant release since v.0.6.13 and there are several breaking changes.
Switch to C++17. Since v.0.7.0 RESTinio requires C++17 as the minimal C++ standard.
Switch to nodejs/llhttp library for parsing HTTP requests. Previous versions of RESTinio used nodejs/http-parser, but it is now deprecated and no longer maintained. Since v.0.7.0 RESTinio uses nodejs/llhttp.
No more external projects for optional, variant and string_view. After switching to C++17 RESTinio uses std::optional, std::variant and std::string_view. Note that for the expected class RESTinio still needs the expected-lite project as a dependency.
Switch to Catch2 v3. The Catch2 library is used in RESTinio for testing. The first versions of Catch2 were header-only, but since v3 the Catch2 needs to be compiled as a library. Since v.0.7.0 RESTinio uses Catch2 v3 and can’t be used with previous versions of Catch2 library.
The Clara library is no longer used in RESTinio samples/tests/benchmarks. Parsing of command line arguments in some samples/tests/benchmarks becomes more simple and arguments with long names can’t be shortened now. It means that if --address is required then it can’t be specified as --addr.
The RapidJSON/json_dto libraries are no longer used in RESTinio samples/tests/benchmarks.
CMake is now the only build system supported. The previous versions of RESTinio used CMake and our own Mxx_ru build systems. Since v.0.7.0 only CMake is used. But Mxx_ru is still in use for managing dependencies.
RESTinio's CMake scripts have been refactored significantly. Most of the old CMake variables/options used for the configuration (like RESTINIO_FIND_DEPS) have been removed. There are several new variables/options that have to be used since v0.7.0: RESTINIO_ASIO_SOURCE, RESTINIO_DEP_STANDALONE_ASIO, RESTINIO_DEP_BOOST_ASIO, RESTINIO_DEP_LLHTTP, RESTINIO_DEP_FMT, RESTINIO_DEP_EXPECTED_LITE and so on. Please see the corresponding section in the documentation for more details.
Several classes/methods/functions marked as deprecated in previous versions are now removed.
The core restinio/all.hpp header file has been deprecated. It will be removed in v.0.8.0. The new core restinio/core.hpp header file must be used instead.
The format and behavior of restinio::on_pool_runner_t::stop changed. Now it may accept on_error-callback. The default on_error-callback calls std::abort if an exception is thrown in http_server_t::close_async.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is the first significant release since v.0.6.13 and there are several breaking changes.
expected
class RESTinio still needs the expected-lite project as a dependency.--address
is required then it can’t be specified as--addr
.RESTINIO_FIND_DEPS
) have been removed. There are several new variables/options that have to be used since v0.7.0:RESTINIO_ASIO_SOURCE
,RESTINIO_DEP_STANDALONE_ASIO
,RESTINIO_DEP_BOOST_ASIO
,RESTINIO_DEP_LLHTTP
,RESTINIO_DEP_FMT
,RESTINIO_DEP_EXPECTED_LITE
and so on. Please see the corresponding section in the documentation for more details.restinio/all.hpp
header file has been deprecated. It will be removed in v.0.8.0. The new corerestinio/core.hpp
header file must be used instead.restinio::on_pool_runner_t::stop
changed. Now it may accept on_error-callback. The default on_error-callback callsstd::abort
if an exception is thrown inhttp_server_t::close_async
.This discussion was created from the release v.0.7.0.
Beta Was this translation helpful? Give feedback.
All reactions