From 6c4e2c85fe6e875bbf67db095df2497b93bf455b Mon Sep 17 00:00:00 2001 From: R Date: Sat, 14 Nov 2026 01:24:05 -0300 Subject: [PATCH] asio: remove the cobalt and cobalt_ssl aliases Each Cobalt target has one name, under /webcpp/cobalt (the owner's decision of 2026-11-14). The guide and the feature matrix name /webcpp/cobalt//cobalt and cobalt_ssl, and the changelog records the breaking change. --- build.jam | 9 --------- doc/capabilities.adoc | 2 +- doc/changelog.adoc | 1 + doc/cobalt.adoc | 7 +++---- doc/feature-matrix.adoc | 10 +++++----- 5 files changed, 10 insertions(+), 19 deletions(-) diff --git a/build.jam b/build.jam index 9cb504c..86a8044 100644 --- a/build.jam +++ b/build.jam @@ -101,11 +101,6 @@ alias asio : : : : include /boost//headers emscripten:@webcpp%suspend-tag ; # end::asio[] -# Compatibility names retain the independent Cobalt integration. -# tag::cobalt[] -alias cobalt : : : : /webcpp/cobalt//cobalt ; -# end::cobalt[] - # tag::openssl[] rule openssl-linked ( properties * ) { @@ -135,7 +130,3 @@ explicit openssl-tests ; alias tls : : : : asio openssl /webcpp/third_party//ca_certificates ; # end::tls[] - -# tag::cobalt-ssl[] -alias cobalt_ssl : : : : /webcpp/cobalt//cobalt_ssl ; -# end::cobalt-ssl[] diff --git a/doc/capabilities.adoc b/doc/capabilities.adoc index af8f96f..12f2de0 100644 --- a/doc/capabilities.adoc +++ b/doc/capabilities.adoc @@ -149,7 +149,7 @@ suspend through wasi-libc and the host's Component Model implementation. The public Cobalt target builds its static archive with checked compatibility headers and sources on WASIp3. Timers, TCP/UDP and cancellation are exercised through both Asio completion tokens and Cobalt's own wrappers. The optional -`/webcpp/asio//cobalt_ssl` target adds Cobalt's SSL wrapper with verified TLS +`/webcpp/cobalt//cobalt_ssl` target adds Cobalt's SSL wrapper with verified TLS and handshake/transfer cancellation, including partial composed operations. Truncated and cancelled shutdown are also tested; see <>. See <> for integration details and diff --git a/doc/changelog.adoc b/doc/changelog.adoc index b1ca8a1..d16a4f0 100644 --- a/doc/changelog.adoc +++ b/doc/changelog.adoc @@ -14,6 +14,7 @@ Changes prepared for the first WebCPP release. === Unreleased // tag::unreleased[] +* *Breaking change:* Removed `/webcpp/asio//cobalt` and `cobalt_ssl`; link `/webcpp/cobalt//cobalt` or `cobalt_ssl`. * Fixed browser turn budgets across timer waits so worker proxy messages can run. * Fixed browser and WASIp2 timer test dependencies and the unbounded backend control. * Improved exception analysis of system executor initialization without changing fatal behavior. diff --git a/doc/cobalt.adoc b/doc/cobalt.adoc index 842fd06..8217109 100644 --- a/doc/cobalt.adoc +++ b/doc/cobalt.adoc @@ -26,8 +26,8 @@ application still writes `co_main`; the runner owns `main`. Select `/webcpp/cobalt//cobalt` for an application defining `co_main`, or `/webcpp/cobalt//core` when the application supplies `main` and drives its own -context. The old `/webcpp/asio//cobalt` name is a compatibility alias. Do not -also link a system Cobalt archive or another runner. +context. Asio declares no Cobalt target of its own. Do not also link a system +Cobalt archive or another runner. The link:{webcpp-libs}/cobalt/{webcpp-page}#cobalt-building-external[external build recipe] lists the shipped sources and dependencies for another build system. Apply @@ -41,8 +41,7 @@ error handling does not repair that pending-coroutine move path. === Use the corrected SSL stream Include `webcpp/cobalt/io/ssl.hpp`. Select `/webcpp/cobalt//cobalt_ssl` with the -runner or `/webcpp/cobalt//io_ssl` with a custom main. The old -`/webcpp/asio//cobalt_ssl` name is a compatibility alias. These optional targets +runner or `/webcpp/cobalt//io_ssl` with a custom main. These optional targets share Asio's source-built OpenSSL and CA provider; plain Cobalt does not link TLS. Browser HTTPS/WSS instead uses host TLS and its certificate policy. diff --git a/doc/feature-matrix.adoc b/doc/feature-matrix.adoc index f59549d..5f4ab34 100644 --- a/doc/feature-matrix.adoc +++ b/doc/feature-matrix.adoc @@ -17,8 +17,8 @@ The 2026-11-06 distribution migration changes type selection and source ownershi The cells below retain their original evidence date; they do not certify the current unsubmitted candidate. Use <> for current build rules and link:{webcpp-libs}/cobalt/{webcpp-page}#cobalt-testing[Cobalt's current validation status]. -The old `/webcpp/asio//cobalt` target is now a compatibility alias for -`/webcpp/cobalt//cobalt`. Portable consumers use `webcpp::cobalt` names. +Cobalt is linked through `/webcpp/cobalt//cobalt`; Asio declares no Cobalt +target. Portable consumers use `webcpp::cobalt` names. Do not infer that an Asio feature has also been tested through a Cobalt wrapper or completion token. @@ -312,7 +312,7 @@ EH-off APIs does not establish universal exception-free safety. The thread coroutine also has internal exception-handling paths that require a dedicated failure-path audit without EH. Native I/O rows are subject to the OS and Boost feature macros. Cobalt's SSL wrapper is supplied by the optional -`/webcpp/asio//cobalt_ssl` target; plain Cobalt remains independent of OpenSSL. +`/webcpp/cobalt//cobalt_ssl` target; plain Cobalt remains independent of OpenSSL. The M thread test creates a Cobalt thread coroutine and awaits its completion. It does not establish correctness of arbitrary concurrent coroutine composition. @@ -389,7 +389,7 @@ policy remain application/runtime requirements. [#asio-feature-cobalt-wasip3] ==== Cobalt: WASIp3 -The public dependency `/webcpp/asio//cobalt` builds and runs in all three +The public dependency `/webcpp/cobalt//cobalt` builds and runs in all three available profiles. M/EH on remains X because SDK 34.0 lacks that runtime. EH-off tests do not remove the pending-task move restriction in issue 287. @@ -526,7 +526,7 @@ Result adapters do not repair this internal path. Other coroutine families still need their own success, error and cancellation tests. | Cobalt `io::ssl::stream` | Available through an optional target with a checked Boost 1.92 patch -| `/webcpp/asio//cobalt_ssl` adds the wrapper, state/callback corrections and +| `/webcpp/cobalt//cobalt_ssl` adds the wrapper, state/callback corrections and `native_ssl_handle()` extension. Native, P2 S and supported P3 profiles are available; browser TLS remains host-owned. See <> for trust configuration and the STARTTLS contract.