diff --git a/CHANGELOG.md b/CHANGELOG.md index 67a1188..2e62f2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## [Unreleased] +## [0.2.0] - 2026-10-22 + ### Added - `scripts/format.sh`, which pins the clang-format release and runs it with `uvx`. CI checks formatting through it. @@ -20,7 +22,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). - The build produces and installs only the static library. The shared library, which neither `seqlock_dep` nor `seqlock.pc` linked, is no longer built. - CI installs Meson, Ninja and gcovr with `uv` instead of `pip`. - CI gates on 100% branch coverage as well as line coverage. The reader retry branches are reached deterministically by a single-threaded test, and the no-atomics backend is built and tested alongside the C11 backend. - - Added security policy, SPDX headers, and cleaned ignore rules while leaving the existing special coverage/concurrency handling unchanged. ### Removed diff --git a/docs/api.md b/docs/api.md index b2e1614..2f0c592 100644 --- a/docs/api.md +++ b/docs/api.md @@ -179,16 +179,16 @@ record_load(const record_cell_t *cell, void *out) ```c #define SEQLOCK_VERSION_MAJOR 0 -#define SEQLOCK_VERSION_MINOR 1 -#define SEQLOCK_VERSION_PATCH 1 -#define SEQLOCK_VERSION "0.1.1" +#define SEQLOCK_VERSION_MINOR 2 +#define SEQLOCK_VERSION_PATCH 0 +#define SEQLOCK_VERSION "0.2.0" ``` `SEQLOCK_VERSION_NUMBER` is `MAJOR * 10000 + MINOR * 100 + PATCH` as a `long`, so it holds any version where `int` is 16 bits. Compare it in the preprocessor to require a minimum release: ```c -#if SEQLOCK_VERSION_NUMBER < 101L -#error "seqlock 0.1.1 or later is required" +#if SEQLOCK_VERSION_NUMBER < 200L +#error "seqlock 0.2.0 or later is required" #endif ``` diff --git a/include/seqlock.h b/include/seqlock.h index 74fa5e7..596f1b8 100644 --- a/include/seqlock.h +++ b/include/seqlock.h @@ -50,9 +50,9 @@ /* cppcheck-suppress-begin misra-c2012-2.5 ; @deviation Public version macros * for consumer diagnostics and #if checks; the library does not use them. */ #define SEQLOCK_VERSION_MAJOR 0 -#define SEQLOCK_VERSION_MINOR 1 -#define SEQLOCK_VERSION_PATCH 1 -#define SEQLOCK_VERSION "0.1.1" +#define SEQLOCK_VERSION_MINOR 2 +#define SEQLOCK_VERSION_PATCH 0 +#define SEQLOCK_VERSION "0.2.0" #define SEQLOCK_VERSION_STRING SEQLOCK_VERSION #define SEQLOCK_VERSION_NUMBER \ ((SEQLOCK_VERSION_MAJOR * 10000L) + (SEQLOCK_VERSION_MINOR * 100L) \ diff --git a/meson.build b/meson.build index d24af63..72ca0ba 100644 --- a/meson.build +++ b/meson.build @@ -3,7 +3,7 @@ project( 'seqlock', 'c', - version: '0.1.1', + version: '0.2.0', meson_version: '>=0.57.0', default_options: [ 'c_std=c11',