Skip to content

Commit 9bc2886

Browse files
committed
chore: migrate deps to namespace syntax (mcpp 0.0.6)
Updates mcpp.toml to use explicit namespace fields: - [package].namespace added - [package].name → short name only - [dependencies.compat] for non-modular libs (mbedtls, gtest, lua) - [dependencies.mcpplibs.capi] for C API wrappers
1 parent 1cf4c9f commit 9bc2886

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414

1515
# Bootstrap xlings — the tool that the workspace's `.xlings.json`
16-
# binds tool versions to (here it pins mcpp 0.0.4).
16+
# binds tool versions to (here it pins mcpp 0.0.6).
1717
- name: Install xlings
1818
env:
1919
XLINGS_VERSION: 0.4.25
@@ -32,13 +32,13 @@ jobs:
3232

3333
# Cache mcpp's self-bootstrapped sandbox: musl-gcc + binutils +
3434
# glibc + ninja + patchelf, plus the cloned mcpp-index. ~800 MB
35-
# one-time download — reused across runs since mcpp 0.0.4's
35+
# one-time download — reused across runs since mcpp 0.0.6's
3636
# toolchain set is version-pinned.
3737
- name: Cache mcpp sandbox
3838
uses: actions/cache@v4
3939
with:
40-
path: ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.4/registry
41-
key: mcpp-sandbox-${{ runner.os }}-mcpp0.0.4
40+
path: ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.6/registry
41+
key: mcpp-sandbox-${{ runner.os }}-mcpp0.0.6
4242

4343
- name: Build with mcpp
4444
run: mcpp build

.xlings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"workspace": {
3-
"mcpp": { "linux": "0.0.4" }
3+
"mcpp": { "linux": "0.0.6" }
44
}
55
}

mcpp.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[package]
2-
name = "mcpplibs.tinyhttps"
2+
namespace = "mcpplibs"
3+
name = "tinyhttps"
34
version = "0.2.2"
45
description = "Minimal C++23 HTTP/HTTPS client with SSE streaming support"
56
license = "Apache-2.0"
@@ -11,9 +12,9 @@ kind = "lib"
1112
# mbedtls is the only runtime dep. mcpp 0.0.3's transitive walker pulls
1213
# its headers + libmbedtls.a into anything that imports tinyhttps, so
1314
# downstream projects (e.g. mcpplibs.llmapi) don't need to repeat it.
14-
[dependencies]
15+
[dependencies.compat]
1516
mbedtls = "3.6.1"
1617

1718
# `mcpp test` resolves these and discovers tests/**/*.cpp automatically.
18-
[dev-dependencies]
19+
[dev-dependencies.compat]
1920
gtest = "1.15.2"

0 commit comments

Comments
 (0)