Skip to content

v0.2.19

Latest

Choose a tag to compare

@github-actions github-actions released this 19 Nov 15:02
5f9f10a

Module Name: baselibs
Release Tag: v0.2.19
Origin Release Tag: v0.2.18
Release Commit Hash: 5f9f10a
Release Date: 2026-11-19

Overview

The baselibs module provides a selection of basic C++ utility libraries for common use in the S-CORE project.

Disclaimer

This release is not intended for production use, as it does not include a safety argumentation or a completed safety assessment.
The work products compiled in the safety package are created with care according to the S-CORE process (https://eclipse-score.github.io/process_description/main/index.html). However, as a non-profit, open-source organization, the project cannot assume any liability for its content.

For details on the features, see https://eclipse-score.github.io/score/main/features/baselibs/index.html

Notable Changes

Breaking changes & deprecations

  • JSON (score/json): Number parsing now enforces RFC 8259 grammar while retaining hexadecimal integers as an extension. Malformed literals such as 01, +1, .5, and 1. are rejected. Raw control characters in string values and keys are also rejected; escaped control characters remain supported. #827 #826
  • JSON (score/json): The data model is now available through public headers such as score/json/any.h and score/json/object.h, without API changes. Headers under score/json/internal/model remain as deprecated forwarding headers; update includes to the public paths. #812
  • Hash (score/hash): TypedHash::FromAny now returns Error::kWrongType instead of Error::kParsingError for non-string JSON values. Update error handling that distinguishes these codes. #843

New features

  • Concurrency (score/concurrency): Added non-blocking Synchronized::try_lock() when the underlying lock supports it. The returned LockedPtr compares equal to nullptr if acquisition fails. #776
  • Utilities (score/utils/string_registry): Added StringRegistry for string deduplication and stable backing storage. Its RegistryStringView compares and hashes by pointer identity, not string contents. #745
  • Rust stop-token bindings (score/language/rust/stop_token): Added RawStopToken and StopToken::as_raw() for borrowed, non-owning CXX consumers, with C++ bridge aliases for FutureCpp stop tokens and sources. Borrowed tokens observe subsequent stop requests. #763
  • Filesystem (score/filesystem): Added IFileFactory::OpenRegularFile, which checks the opened descriptor and rejects non-regular files with kNotARegularFile without blocking on FIFOs. CopyFile and FileContentsAreIdentical now use it to avoid hangs if a path is replaced with a special file. #845
  • JSON (score/json): Parsing errors now report specific reasons. Added Error::kIoError, Error::kOutOfRange, and Error::kInvalidValue. #843
  • Baselibs (score/): Added opt-in GCC 15.3.0 toolchains for Linux x86_64 and AArch64 through --config=score-linux-x86_64-gcc15 and --config=score-linux-aarch64-gcc15. GCC 12 remains the default and host compiler. #488

Bug fixes

  • JSON (score/json): Failed serialization with synced JsonWriter::ToFile no longer replaces the target file with partially written JSON. #806
  • Filesystem (score/filesystem): Closing or destroying a failed file stream now discards its buffer instead of committing it. Atomic updates remove the temporary file and leave the target unchanged. #806
  • JSON (score/json): The parser now accepts empty object member names and decodes \uXXXX escapes to UTF-8, including UTF-16 surrogate pairs. Unpaired surrogates are rejected. This also fixes reading back these forms from the writer's output. #811 #694
  • JSON (score/json): Parsing now reads buffers directly from memory without copying and reads files once, reducing parsing overhead. Truncated input is reported as invalid JSON. #851
  • JSON (score/json): Removed embedded NUL characters from malformed true and false literal error messages. #833
  • JSON (score/json): Fixed -Wfloat-equal diagnostics in numeric conversions, including floating-point to bool. #838
  • Rust logging (score/log_rust): Fixed QNX linking for the C++-initialized logging example. The log_builtin, log_custom, and log_cpp_init examples moved to examples/integration; the two Rust examples are no longer part of the root Cargo workspace. #836

Compatibility

The following platforms are supported using the bazel_cpp_toolchains (https://github.com/eclipse-score/bazel_cpp_toolchains):

  • x86_64-unknown-linux-gnu
  • aarch64-unknown-linux-gnu
  • x86_64-unknown-nto-qnx800
  • aarch64-unknown-nto-qnx800

Performed Verification

  • Build on all supported platforms
  • Unit test execution on all supported platforms (some test failures are expected on AArch64 and QNX targets).
  • Address and undefined behavior sanitized unit test execution
  • Leak sanitized unit test execution

Report: https://github.com/eclipse-score/baselibs/actions/runs/44531024438

Upgrade Instructions

Backward compatibility with the previous release is not guaranteed.

Contact Information

For any questions or support, please contact the Base Libs Feature Team (https://github.com/orgs/eclipse-score/discussions/1223) or raise an issue/discussion.

What's Changed

  • Keep target unchanged when synced JSON ToFile fails by @mihajlo-k in #806
  • json parser: accept empty object member names by @mihajlo-k in #811
  • Update dependency score_bazel_cpp_toolchains to v1.1.0-rc2 by @eclipse-score-bot in #814
  • skills: identify libraries in release notes by @4og in #816
  • json: isolate parser and writer build dependencies (#726) by @Nikhil2206 in #752
  • ci: use the shared Bazel workflow for Linux builds and tests by @AlexanderLanin in #810
  • json: make the data model public by @mihajlo-k in #812
  • Improve flatbuffer load_buffer_internal.hpp coverage by @paulquiring in #818
  • json parser: Decode Unicode escape sequences in the vaJson parser by @mihajlo-k in #694
  • feat: Move over StringRegistry from inc_someip_gateway to baselibs by @mariuswbr in #745
  • Remove mw/log from .clang-format-ignore by @4og in #825
  • json parser: specify and enforce the number grammar with hex integers as extension by @mihajlo-k in #827
  • Update dependency score_bazel_platforms to v1.3.0 by @eclipse-score-bot in #804
  • Update dependency score_crates to v0.0.15 by @eclipse-score-bot in #820
  • json: Remove error location from vaJson requirements and design by @mihajlo-k in #832
  • json parser: reject unescaped control characters in strings by @mihajlo-k in #826
  • Eliminate deprecation warnings for WithLock tests by @sankurm in #773
  • json: Remove unused and redundant vaJson code by @mihajlo-k in #833
  • Synchronized::try_lock implemented by @sankurm in #776
  • Add GCC 15.3.0 toolchain by @4og in #488
  • examples: move Rust log examples to integration module and fix QNX link options by @antonkri in #836
  • containers_rust: link logical interfaces to feat__baselibs via included_by by @antonkri in #846
  • json: Integrate nst/JSONTestSuite by @Nikhil2206 in #815
  • Mitigate memory access and blocked execution DFA findings by @4og in #848
  • json: Report specific error reasons and add missing error codes by @mihajlo-k in #843
  • filesystem: add OpenRegularFile that does not block on special files by @mihajlo-k in #845
  • json parser: parse vaJson documents from memory instead of a stream by @mihajlo-k in #851
  • utils: link unit tests to comp_req requirements by @Rutik7 in #841
  • safety analysis: set unmitigated result FMEA entry to status draft by @antonkri in #847
  • json: avoid float-equal warning in float to bool cast by @mihajlo-k in #838
  • Add C++ adapter for Rust stop token bindings by @victtorbmoraes in #763

Full Changelog: v0.2.18...v0.2.19