Skip to content

Commit 03522af

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 uses short name only - [dependencies.compat] / [dev-dependencies.compat] for non-modular libs - [dependencies.mcpplibs.capi] for C API wrappers
1 parent f64d999 commit 03522af

3 files changed

Lines changed: 7 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ jobs:
2323
"/tmp/xlings-${XLINGS_VERSION}-linux-x86_64/subos/default/bin/xlings" self install
2424
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
2525
26-
- name: Install workspace tools (.xlings.json → mcpp 0.0.4)
26+
- name: Install workspace tools (.xlings.json → mcpp 0.0.6)
2727
run: xlings install -y
2828

2929
# Cache mcpp's self-bootstrapped sandbox (musl-gcc + binutils +
3030
# glibc + ninja + patchelf, ~800 MB). Toolchain set is pinned by
31-
# mcpp 0.0.4, so a fixed key suffices.
31+
# mcpp 0.0.6, so a fixed key suffices.
3232
- name: Cache mcpp sandbox
3333
uses: actions/cache@v4
3434
with:
35-
path: ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.4/registry
36-
key: mcpp-sandbox-${{ runner.os }}-mcpp0.0.4
35+
path: ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.6/registry
36+
key: mcpp-sandbox-${{ runner.os }}-mcpp0.0.6
3737

3838
- name: Build with mcpp
3939
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: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
11
[package]
2-
name = "mcpplibs.llmapi"
2+
namespace = "mcpplibs"
3+
name = "llmapi"
34
version = "0.2.5"
45
description = "Modern C++ LLM API client with openai-compatible support"
56
license = "Apache-2.0"
67
repo = "https://github.com/mcpplibs/llmapi"
78

89
[build]
9-
# `src/json/json.cppm` does `#include <json.hpp>`; expose its sibling
10-
# header by adding `src/json` to the include search path.
1110
include_dirs = ["src/json"]
1211

1312
[targets.llmapi]
1413
kind = "lib"
1514

16-
# Library convention picks `src/llmapi.cppm` automatically — that file
17-
# already does `export module mcpplibs.llmapi;` and re-exports every
18-
# partition + the third-party `mcpplibs.llmapi.nlohmann.json` module,
19-
# so consumers just `import mcpplibs.llmapi;`.
20-
#
21-
# mbedtls is pulled transitively through tinyhttps (which lists it as a
22-
# direct dep). mcpp 0.0.3's transitive walker propagates its include_dirs
23-
# along that chain, so we don't repeat the declaration here.
24-
2515
[dependencies.mcpplibs]
2616
tinyhttps = "0.2.2"

0 commit comments

Comments
 (0)