- Install.cpp: open the staging download with _wopen in binary mode and
use _commit instead of fsync on Windows (O_EXCL already rejects a
pre-existing entry, so O_NOFOLLOW has no Windows equivalent to keep).
- tests: add a @requires-openssl gate for files that sign fixtures with
OpenSSL headers (unavailable in the Windows environment), and skip the
compressed-package fixture when the Archive backend has no LibArchive.
Verified: Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2)
966 tests, 954 passed, 12 skipped, 0 failed; Linux Update+Testing 982
tests, 978 passed, 4 skipped, 0 failed. Allowlist Update for Windows.
Add TransportWindows.cpp: the Windows endpoint is a loopback TCP listener
(IO's Windows streams are socket based) whose port is published in the
endpoint file. Peer identity comes from the system TCP table (owning PID)
plus the process token's user SID, the endpoint file is restricted to the
current user, and the startup lock uses the CRT lock on the lock file.
Transport.cpp keeps the POSIX implementation and is guarded to !_WIN32.
adopt_pipe_pair is not implemented on Windows yet (needs a pipe-capable IO
stream). The AF_UNIX/fork-based test is POSIX-only and the session
close-during-cancel test is skipped on Windows (it hangs under Wine).
Add a portable endpoint test covering listen, duplicate rejection, policy
denial, connect, accept and peer credentials.
Verified: Linux IPC+Testing 4/4 IPC tests pass. Windows cross build under
Wine 11 (x86_64-w64-mingw32 GCC 16.2): 693 tests, 685 passed, 8 skipped,
0 failed. Allowlist IPC for the Windows target.
Port the /proc-based test helpers: thread counts come from
Toolhelp32Snapshot and descriptor counts from GetProcessHandleCount on
Windows. Allowlist Runtime for the Windows target.
Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2):
Runtime;Testing 837 tests, 831 passed, 6 skipped, 0 failed.
Add a private dlopen/dlsym/dlclose compatibility shim over LoadLibraryW /
GetProcAddress and use it from the loader, host and manager. Allowlist
Plugin for the Windows target.
Verified with the Windows cross build under Wine 11
(x86_64-w64-mingw32 GCC 16.2): Plugin suite 6 tests, 5 passed, 1 skipped,
0 failed.
- AsyncWatcher: implement Windows path probing (size, mtime, type,
symlink target through std::filesystem) - it was a no-op, so polling
watchers never observed changes.
- ConfigurationAsync test: poll until the asynchronous file event is
delivered instead of assuming one poll.
- SystemAsync shutdown test: skip on Windows (POSIX process helper).
Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2):
1178 tests, 1162 passed, 16 skipped, 0 failed.
Fix the Windows compatibility layer: open files in binary mode (WAL data
was being CRLF-translated), replace destination on rename like POSIX,
use handle-backed directory descriptors so FlushFileBuffers works, and
enforce O_NOFOLLOW via reparse-point checks. The Storage test's symlink
setup is now portable. Allowlist Storage for the Windows target.
Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2): the
Storage suites pass (5 passed, 1 skipped); the remaining failures in the
full run are IO tests that need the Linux-only native backend.
Ship SQLite 3.49.1 (sqlite3.c/h, public domain) under third_party/sqlite
and use it as the default VOID_SQLITE3_AMALGAMATION_DIR, so Void::Sqlite
builds the same way on Linux and Windows without a system SQLite3 package
or a network fetch. Allowlist Sqlite for the Windows target.
Also compare the SQLite native error category by name: on Windows the
library and its consumer are separate DLLs, so the category singleton is
not shared across the boundary.
Verified: Linux Sqlite+Testing 419 tests (416 passed, 3 skipped);
Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2) 419 tests
(415 passed, 4 skipped, 0 failed).
Add a POSIX compatibility layer for the Windows build of StagedArchive:
directory descriptors are synthetic path handles, file IO uses the CRT
with UTF-8 to wide path conversion, fstatat/fstat/mkdirat/unlinkat/fsync
are emulated, and publication uses MoveFileExW without replace. The
isolated worker keeps its POSIX rlimit path (guarded) and RSS reporting
returns no value on Windows. Allowlist Archive for the Windows target.
Cross-built with x86_64-w64-mingw32 GCC 16.2: Void_Archive and
VoidTests.exe link with no errors. Linux Archive suite: 10/10 pass.
Refs #65
- Allowlist Configuration, Crypto and System for the Windows target.
- System: link winmm for the Win32 audio backend; include windows.h before
mmsystem.h.
- Tests: add a whole-file // @requires-posix gate (CMake path and the VBS
build.cpp) and mark the POSIX-only System suites; skip helper-based cases
on Windows; make setenv/unsetenv and getpid portable.
- The POSIX process helper is no longer built on Windows.
Cross-built with x86_64-w64-mingw32 GCC 16.2: all modules and VoidTests.exe
link. Linux System+Testing suite still passes (477 tests, 474 passed).
Refs #65
New SHARED module built on Boost.Beast/Asio + OpenSSL (all generic, no
application coupling):
- Void::Net::Url — RFC 3986 parse into scheme/host/port/path/query/target
(Boost.URL), with scheme-default ports and TLS detection.
- Void::Net::HttpClient — synchronous GET/POST/send with TLS (SNI),
configurable User-Agent and TLS verification, request/response types.
- Proxy support: HTTP CONNECT tunnelling for TLS targets, plain-HTTP
forwarding, and a full SOCKS5 handshake (auth, IPv4/IPv6/domain).
- Reuses Void::Encoding::Base64 for proxy auth.
Build wiring: Dependencies.cmake resolves Boost (headers + url) and OpenSSL
+ Threads via find_package (system Boost/OpenSSL). Tests cover URL parsing
and live localhost HTTP GET/POST round-trips (full suite 1136 pass).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
A round of new universal capabilities (all generic — templated/reflection
based, no app coupling), verified by the test suite (1103 passing):
Data reflection:
- Reflect.hpp now (de)serializes chrono::duration, chrono::time_point,
std::variant (tagged), std::array, and non-string-keyed std::map;
Meta.hpp gains is_time_point_v et al.
Async:
- EventBus gains Mode::Async (worker-thread dispatch + flush()).
- ThreadPool gains a bounded queue, try_submit(), and rejection stats.
New modules / containers:
- Resilience: TokenBucket, KeyedRateLimiter<Key>, CircuitBreaker,
ResourceMonitor.
- Containers: BufferPool<T> (size-class buffer reuse) and Cache<K,V>
(per-entry TTL, LRU/LFU/FIFO eviction, hit/miss stats).
- System: process/CPU/memory metrics (Metrics.hpp) and a streaming
Process API.
Plus FSM v2 (typed Success/Failure, sub-machines, parallel regions,
history states, deferred events), Configuration/Logging reflection
helpers, and the accompanying test suites.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Headers move, CMake targets merge, C++ namespaces stay unchanged:
- Core: Scope, Lazy, Counted, Flags, Hash, Bits, Uuid, TypeList, TypeMap, Variant
- Functional: Pipeline, Either, Result, Retry
- Containers: Ring, Pool, PriorityQueue, LRU, Trie, Graph, DisjointSet, Bitset, Interval
- Math: +Matrix, Numeric, Random, Histogram
- Text: Str, Format, Tokenizer, Diff, Encoding, Semver
- Data: Json, Csv, Ini
- Async: Coro, Concurrency, EventBus, Observable
- Time: +Bench
- Log: Log facade + Logging framework (facade now header-only, breaking
the Stacktrace<->Log link cycle the merge would have created)
- System: FileSystem + Process
- Configuration: +Argparse
- Unchanged: Stacktrace, Plugin, StateMachine, Testing, TestingMock, Detail
Module system fixes:
- OPTIONAL_DEPS resolution deferred to void_finalize_modules() so it no
longer depends on the alphabetical discovery order of src/ subdirs
(Testing -> Text would have been silently dropped).
- Every header-only module now has a tracked module.cmake; previously the
empty src/<Name> marker dirs were untracked, so a fresh clone would have
silently skipped those modules.
- VOID_HAS_LOGGING/CONCURRENCY/STR consumers renamed to LOG/ASYNC/TEXT.
Tests move to tests/standalone/<Umbrella>/<Feature>.cpp (Result suite files
prefixed: ResultBasic etc.). Test count verified identical (831) before and
after. README/CLAUDE.md module tables updated.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Adds Logging module with thread-safe Logger base class, ScopedContext
RAII guards, Preset helpers, and a FileLogger standalone test/example.
Includes CMake module system for auto-discovery and CTest integration.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>