Skip to content

refactor(asio): make module package canonical#109

Merged
Sunrisepeak merged 2 commits into
mcpplibs:mainfrom
wellwei:refactor/asio-module
Jul 24, 2026
Merged

refactor(asio): make module package canonical#109
Sunrisepeak merged 2 commits into
mcpplibs:mainfrom
wellwei:refactor/asio-module

Conversation

@wellwei

@wellwei wellwei commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • remove the transitional compat.asio@1.38.1 header-only package and its consumer tests
  • replace the chriskohlhoff.asio package identity with canonical default-root asio@1.38.1
  • preserve the existing C++23 module wrapper and separate-compilation recipe, with concise usage cautions, limitations, and unexported-component notes

Consumer contract

mcpp add asio@1.38.1
import std;
import asio;

compat.asio@1.38.1 and chriskohlhoff.asio@1.38.1 are removed without aliases. The canonical package is module-only.

Validation

  • Lua syntax and mirror-table checks
  • strict descriptor parse with workflow-pinned mcpp 0.0.101
  • isolated macOS arm64 mcpp test -p asio-module: 5 passed, 0 failed

Linux and Windows module coverage is delegated to PR CI.

No archive URL, SHA-256, mirror, generated wrapper, source list, feature, define, platform flag, mcpp core behavior, or unrelated documentation changes.

@wellwei
wellwei force-pushed the refactor/asio-module branch from 3972203 to 239531f Compare July 21, 2026 07:31
Comment thread pkgs/a/asio.lua Outdated
-- `asio/coroutine.hpp`、`asio/streambuf.hpp`。
package = {
spec = "1",
namespace = "",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

缺少命名空间 以及文件名命名 chriskohlhoff.asio.lua

package = {
spec = "1",
namespace = "chriskohlhoff",
name = "asio",
description = "Standalone asio exposed as the C++23 module asio (separate compilation)",
licenses = {"BSL-1.0"},

wellwei added a commit to wellwei/mcpp-index that referenced this pull request Jul 24, 2026
- Replace chriskohlhoff.asio descriptor with PR mcpplibs#109 content
  (namespace="chriskohlhoff", name="asio" for dual resolution:
  mcpp add chriskohlhoff.asio@1.38.1 / mcpp add asio@1.38.1)
- Remove compat.asio@1.38.1 header-only package and its consumer tests
- Remove tests/examples/asio from workspace members
- Update asio-module test comments to remove mirror references
@wellwei
wellwei force-pushed the refactor/asio-module branch 2 times, most recently from 17f3d5c to 239531f Compare July 24, 2026 16:57
wellwei added a commit to wellwei/mcpp-index that referenced this pull request Jul 24, 2026
…ontent

Move pkgs/a/asio.lua -> pkgs/c/chriskohlhoff.asio.lua with
namespace="chriskohlhoff" so consumers can use both:
  mcpp add chriskohlhoff.asio@1.38.1  (fully qualified)
  mcpp add asio@1.38.1                (short form)

Update asio-module test project index accordingly.
@wellwei
wellwei force-pushed the refactor/asio-module branch from 3233ade to 239531f Compare July 24, 2026 17:03
…ontent

Move pkgs/a/asio.lua -> pkgs/c/chriskohlhoff.asio.lua with
namespace="chriskohlhoff" so consumers can reference it as both
chriskohlhoff.asio@1.38.1 and asio@1.38.1.

Update asio-module test project index accordingly.
@Sunrisepeak
Sunrisepeak merged commit 788ce06 into mcpplibs:main Jul 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants