From 9bc2886ef84b186a7fab37c62cb90e2c8ff50b05 Mon Sep 17 00:00:00 2001 From: sunrisepeak Date: Mon, 11 May 2026 08:29:15 +0800 Subject: [PATCH 1/2] chore: migrate deps to namespace syntax (mcpp 0.0.6) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/ci.yml | 8 ++++---- .xlings.json | 2 +- mcpp.toml | 7 ++++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 767a33e..d7bfc00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v4 # Bootstrap xlings — the tool that the workspace's `.xlings.json` - # binds tool versions to (here it pins mcpp 0.0.4). + # binds tool versions to (here it pins mcpp 0.0.6). - name: Install xlings env: XLINGS_VERSION: 0.4.25 @@ -32,13 +32,13 @@ jobs: # Cache mcpp's self-bootstrapped sandbox: musl-gcc + binutils + # glibc + ninja + patchelf, plus the cloned mcpp-index. ~800 MB - # one-time download — reused across runs since mcpp 0.0.4's + # one-time download — reused across runs since mcpp 0.0.6's # toolchain set is version-pinned. - name: Cache mcpp sandbox uses: actions/cache@v4 with: - path: ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.4/registry - key: mcpp-sandbox-${{ runner.os }}-mcpp0.0.4 + path: ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.6/registry + key: mcpp-sandbox-${{ runner.os }}-mcpp0.0.6 - name: Build with mcpp run: mcpp build diff --git a/.xlings.json b/.xlings.json index b3b1fb4..f07ea0d 100644 --- a/.xlings.json +++ b/.xlings.json @@ -1,5 +1,5 @@ { "workspace": { - "mcpp": { "linux": "0.0.4" } + "mcpp": { "linux": "0.0.6" } } } diff --git a/mcpp.toml b/mcpp.toml index dc89510..73f274d 100644 --- a/mcpp.toml +++ b/mcpp.toml @@ -1,5 +1,6 @@ [package] -name = "mcpplibs.tinyhttps" +namespace = "mcpplibs" +name = "tinyhttps" version = "0.2.2" description = "Minimal C++23 HTTP/HTTPS client with SSE streaming support" license = "Apache-2.0" @@ -11,9 +12,9 @@ kind = "lib" # mbedtls is the only runtime dep. mcpp 0.0.3's transitive walker pulls # its headers + libmbedtls.a into anything that imports tinyhttps, so # downstream projects (e.g. mcpplibs.llmapi) don't need to repeat it. -[dependencies] +[dependencies.compat] mbedtls = "3.6.1" # `mcpp test` resolves these and discovers tests/**/*.cpp automatically. -[dev-dependencies] +[dev-dependencies.compat] gtest = "1.15.2" From 2fb04520bfb55ce4b1bb1d2cc5c7b3520db56b4e Mon Sep 17 00:00:00 2001 From: sunrisepeak Date: Mon, 11 May 2026 08:48:16 +0800 Subject: [PATCH 2/2] ci: retrigger with fixed mcpp 0.0.6 --- .github/workflows/ci.yml | 8 ++++---- .xlings.json | 2 +- mcpp.toml | 8 ++------ 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7bfc00..49adbdf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v4 # Bootstrap xlings — the tool that the workspace's `.xlings.json` - # binds tool versions to (here it pins mcpp 0.0.6). + # binds tool versions to (here it pins mcpp 0.0.7). - name: Install xlings env: XLINGS_VERSION: 0.4.25 @@ -32,13 +32,13 @@ jobs: # Cache mcpp's self-bootstrapped sandbox: musl-gcc + binutils + # glibc + ninja + patchelf, plus the cloned mcpp-index. ~800 MB - # one-time download — reused across runs since mcpp 0.0.6's + # one-time download — reused across runs since mcpp 0.0.7's # toolchain set is version-pinned. - name: Cache mcpp sandbox uses: actions/cache@v4 with: - path: ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.6/registry - key: mcpp-sandbox-${{ runner.os }}-mcpp0.0.6 + path: ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.7/registry + key: mcpp-sandbox-${{ runner.os }}-mcpp0.0.7 - name: Build with mcpp run: mcpp build diff --git a/.xlings.json b/.xlings.json index f07ea0d..3f993c1 100644 --- a/.xlings.json +++ b/.xlings.json @@ -1,5 +1,5 @@ { "workspace": { - "mcpp": { "linux": "0.0.6" } + "mcpp": { "linux": "0.0.7" } } } diff --git a/mcpp.toml b/mcpp.toml index 73f274d..f80392f 100644 --- a/mcpp.toml +++ b/mcpp.toml @@ -9,12 +9,8 @@ repo = "https://github.com/mcpplibs/tinyhttps" [targets.tinyhttps] kind = "lib" -# mbedtls is the only runtime dep. mcpp 0.0.3's transitive walker pulls -# its headers + libmbedtls.a into anything that imports tinyhttps, so -# downstream projects (e.g. mcpplibs.llmapi) don't need to repeat it. -[dependencies.compat] +[dependencies] mbedtls = "3.6.1" -# `mcpp test` resolves these and discovers tests/**/*.cpp automatically. -[dev-dependencies.compat] +[dev-dependencies] gtest = "1.15.2"