Skip to content

Commit 3233ade

Browse files
committed
refactor(asio): keep chriskohlhoff namespace, adopt PR #109 content
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.
1 parent 239531f commit 3233ade

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
-- (Form B inline descriptor, separate-compilation mode)。
33
--
44
-- 注意事项
5-
-- * 使用 `mcpp add asio@1.38.1` 引入;消费者需显式写
5+
-- * 使用 `mcpp add chriskohlhoff.asio@1.38.1` 引入;消费者需显式写
66
-- `import std; import asio;`,因为本包设置 import_std = false。
77
-- * 本包只支持模块方式消费。同一 translation unit 不要混用
88
-- `#include <asio.hpp>` 和 `import asio;`,避免 inline 定义与模块 BMI
@@ -37,7 +37,7 @@
3737
-- `asio/coroutine.hpp`、`asio/streambuf.hpp`。
3838
package = {
3939
spec = "1",
40-
namespace = "",
40+
namespace = "chriskohlhoff",
4141
name = "asio",
4242
description = "Standalone asio exposed as the C++23 module `asio` (separate compilation)",
4343
licenses = {"BSL-1.0"},
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Asio C++23-module consumer test project: `import std; import asio;`.
2-
# The public package is the default-root module-only `asio@1.38.1` package.
2+
# The public package is `chriskohlhoff.asio@1.38.1` (module-only).
33
[package]
44
name = "asio-module-tests"
55
version = "0.1.0"
66

77
[indices]
8-
default = { path = "../../.." }
8+
chriskohlhoff = { path = "../../.." }
99

10-
[dependencies]
10+
[dependencies.chriskohlhoff]
1111
asio = "1.38.1"

0 commit comments

Comments
 (0)