File tree Expand file tree Collapse file tree 7 files changed +26
-10
lines changed
Expand file tree Collapse file tree 7 files changed +26
-10
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.29.0 - 2025-02-04
4+
5+ ### Enhancements
6+ - Fixed documentation for using external versions of libraries (credit: @ElBellaCiao )
7+
8+ ### Breaking changes
9+ - Updated the minimum supported C++ standard to C++17
10+
311## 0.28.0 - 2025-01-21
412
513### Breaking changes
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.14)
44# Project details
55#
66
7- project ("databento" VERSION 0.28 .0 LANGUAGES CXX)
7+ project ("databento" VERSION 0.29 .0 LANGUAGES CXX)
88string (TOUPPER ${PROJECT_NAME} PROJECT_NAME_UPPERCASE)
99
1010#
@@ -100,7 +100,7 @@ message(STATUS "Added all header and implementation files.")
100100# Set the project standard and warnings
101101#
102102
103- target_compile_features (${PROJECT_NAME} PUBLIC cxx_std_11 )
103+ target_compile_features (${PROJECT_NAME} PUBLIC cxx_std_17 )
104104include (cmake/CompilerWarnings.cmake)
105105set_target_warnings(${PROJECT_NAME} )
106106include (cmake/Sanitizers.cmake)
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ The client supports both streaming real-time and historical market data through
99
1010## Usage
1111
12- The minimum C++ standard is C++11 and the minimum CMake version is 3.14.
12+ The minimum C++ standard is C++17 and the minimum CMake version is 3.14.
1313
1414### Integration
1515
16- The easiest way to use our library is by embedding it with [ CMake FetchContent] ( https://cmake.org/cmake/help/v3.11 /module/FetchContent.html ) .
16+ The easiest way to use our library is by embedding it with [ CMake FetchContent] ( https://cmake.org/cmake/help/latest /module/FetchContent.html ) .
1717Your ` CMakeLists.txt ` should look something like the following:
1818
1919``` cmake
@@ -69,7 +69,7 @@ You'll need to ensure the following dependencies are installed:
6969
7070By default, date, cpp-httplib and nlohmann\_ json are downloaded by CMake as part of the build process.
7171If you would like to use a local version of these libraries, enable the CMake flag
72- ` DATABENTO_ENABLE_EXTERNAL_DATE ` , ` DATABENTO_ENABLE_EXTERNAL_HTTPLIB ` , or ` DATABENTO_ENABLE_EXTERNAL_JSON ` respectively.
72+ ` DATABENTO_USE_EXTERNAL_DATE ` , ` DATABENTO_USE_EXTERNAL_HTTPLIB ` , or ` DATABENTO_USE_EXTERNAL_JSON ` respectively.
7373
7474#### Ubuntu
7575
Original file line number Diff line number Diff line change @@ -54,6 +54,6 @@ function(add_example_target name file)
5454 PRIVATE
5555 databento::databento
5656 )
57- target_compile_features (${name} PUBLIC cxx_std_11 )
57+ target_compile_features (${name} PUBLIC cxx_std_17 )
5858 set_target_warnings(${name} )
5959endfunction ()
Original file line number Diff line number Diff line change 11# Maintainer: Databento <support@databento.com>
22_pkgname=databento-cpp
33pkgname=databento-cpp-git
4- pkgver=0.28 .0
4+ pkgver=0.29 .0
55pkgrel=1
66pkgdesc=" Official C++ client for Databento"
77arch=(' any' )
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- set -e
2+ set -euo pipefail
3+ set -x
4+
5+ # Control the parallelism with the `NPROC` env
6+ # If unset, it defaults to the smaller of `nproc` or 8
7+ if [ -z " ${NPROC+x} " ]; then
8+ NPROC=" $( nproc) "
9+ NPROC=" $(( $NPROC > 8 ? 8 : $NPROC )) "
10+ fi
311
412cmake -S . -B build \
513 -DDATABENTO_ENABLE_UNIT_TESTING=1 \
614 -DDATABENTO_ENABLE_EXAMPLES=1 \
715 -DDATABENTO_ENABLE_CLANG_TIDY=1 \
816 -DDATABENTO_ENABLE_ASAN=1 \
917 -DDATABENTO_ENABLE_UBSAN=1
10- cmake --build build -- -j " $( nproc ) "
18+ cmake --build build -- -j " $NPROC "
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ target_include_directories(
7878# Set the compiler standard
7979#
8080
81- target_compile_features (${PROJECT_NAME} PUBLIC cxx_std_11 )
81+ target_compile_features (${PROJECT_NAME} PUBLIC cxx_std_17 )
8282# Ensure std::string debug info is included
8383if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_BUILD_TYPE STREQUAL "Debug" )
8484 target_compile_options (${PROJECT_NAME} PRIVATE -fstandalone-debug)
You can’t perform that action at this time.
0 commit comments