Skip to content

Commit bd6c1e5

Browse files
committed
Update changelog for v1.0.4, separate dynamic_stream_buffer.h into slick-dynamic-buffer repo, and remove Boost.Asio related code and tests
1 parent 27a4ace commit bd6c1e5

5 files changed

Lines changed: 5 additions & 394 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## v1.0.4 - 2026-06-12
4+
- Separatad slick/dynamic_stream_buffer.h into slick-dynamic-buffer repo due to vcpk dependencies issue
5+
36
## v1.0.3 - 2026-06-11
47
- `slick/dynamic_stream_buffer.h` is now installed only when Boost is found at
58
configure time, and the header emits a clear `#error` when included without

CMakeLists.txt

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
cmake_minimum_required(VERSION 3.10)
22

33
project(slick-stream-buffer
4-
VERSION 1.0.3
5-
DESCRIPTION "A C++ lock-free SPMC byte stream buffer with a Boost.Asio DynamicBuffer adapter"
4+
VERSION 1.0.4
5+
DESCRIPTION "A C++ lock-free SPMC byte stream buffer"
66
LANGUAGES CXX)
77

88
set(CMAKE_CXX_STANDARD 20)
@@ -28,25 +28,6 @@ else()
2828
message(STATUS "slick-shm: ${slick-shm_VERSION}")
2929
endif()
3030

31-
# Boost.Asio is only needed by the optional dynamic_stream_buffer adapter header.
32-
# vcpkg/CMake-built Boost exports an asio component (Boost::asio), but b2/system
33-
# installs expose header-only libs only through Boost::headers, so the component
34-
# lookup can fail even when the asio headers are installed. Fall back to plain
35-
# Boost and verify the asio header actually exists.
36-
find_package(Boost CONFIG QUIET COMPONENTS asio)
37-
set(SLICK_HAS_BOOST_ASIO ${Boost_FOUND})
38-
if(NOT Boost_FOUND)
39-
find_package(Boost CONFIG QUIET)
40-
if(Boost_FOUND)
41-
unset(SLICK_BOOST_ASIO_BUFFER_HPP CACHE)
42-
find_file(SLICK_BOOST_ASIO_BUFFER_HPP boost/asio/buffer.hpp
43-
PATHS ${Boost_INCLUDE_DIRS} NO_DEFAULT_PATH)
44-
if(SLICK_BOOST_ASIO_BUFFER_HPP)
45-
set(SLICK_HAS_BOOST_ASIO TRUE)
46-
endif()
47-
endif()
48-
endif()
49-
5031
add_library(slick-stream-buffer INTERFACE)
5132
add_library(slick::stream_buffer ALIAS slick-stream-buffer)
5233

@@ -66,15 +47,6 @@ if(BUILD_SLICK_STREAM_BUFFER_TESTS)
6647
add_subdirectory(tests)
6748
endif()
6849

69-
# Installation rules - the Boost.Asio adapter header is only exposed when Boost.Asio is found
70-
if(SLICK_HAS_BOOST_ASIO)
71-
message(STATUS "Boost.Asio found (Boost ${Boost_VERSION}) - installing slick/dynamic_stream_buffer.h")
72-
install(DIRECTORY include/ DESTINATION include)
73-
else()
74-
message(STATUS "Boost.Asio not found - slick/dynamic_stream_buffer.h will not be installed")
75-
install(DIRECTORY include/ DESTINATION include PATTERN "dynamic_stream_buffer.h" EXCLUDE)
76-
endif()
77-
7850
# Generate and install CMake config files for vcpkg compatibility
7951
include(CMakePackageConfigHelpers)
8052

include/slick/dynamic_stream_buffer.h

Lines changed: 0 additions & 119 deletions
This file was deleted.

tests/CMakeLists.txt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,5 @@ target_link_libraries(slick-stream-buffer-tests PRIVATE slick::stream_buffer GTe
2525
# Enable loss detection in tests
2626
target_compile_definitions(slick-stream-buffer-tests PRIVATE SLICK_STREAM_BUFFER_ENABLE_LOSS_DETECTION=1)
2727

28-
# Boost.Asio DynamicBuffer adapter tests - only the needed component (beast transitively
29-
# provides asio). System Boost installs only export header-only libs as Boost::headers.
30-
find_package(Boost CONFIG QUIET COMPONENTS beast)
31-
if(NOT Boost_FOUND)
32-
find_package(Boost CONFIG QUIET)
33-
endif()
34-
if(Boost_FOUND)
35-
message(STATUS "Boost ${Boost_VERSION} found - building dynamic_stream_buffer tests")
36-
target_sources(slick-stream-buffer-tests PRIVATE dynamic_stream_buffer_tests.cpp)
37-
if(TARGET Boost::beast)
38-
target_link_libraries(slick-stream-buffer-tests PRIVATE Boost::beast)
39-
else()
40-
target_link_libraries(slick-stream-buffer-tests PRIVATE Boost::headers)
41-
endif()
42-
else()
43-
message(STATUS "Boost not found - skipping dynamic_stream_buffer tests")
44-
endif()
45-
4628
include(GoogleTest)
4729
gtest_discover_tests(slick-stream-buffer-tests)

0 commit comments

Comments
 (0)