Skip to content

Commit c69a99c

Browse files
authored
chore: migrate deps to namespace syntax (mcpp 0.0.6) (#6)
* 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 * ci: retrigger with fixed mcpp 0.0.6
1 parent 6e15aaf commit c69a99c

3 files changed

Lines changed: 8 additions & 14 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.7)
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.7, 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.7/registry
36+
key: mcpp-sandbox-${{ runner.os }}-mcpp0.0.7
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.7" }
44
}
55
}

mcpp.toml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
[package]
2-
name = "mcpplibs.capi.lua"
2+
namespace = "mcpplibs.capi"
3+
name = "lua"
34
version = "0.0.3"
4-
description = "C++23 module wrapping the Lua 5.4 C API — `import mcpplibs.capi.lua;`"
5+
description = "C++23 module wrapping the Lua 5.4 C API"
56
license = "Apache-2.0"
67
repo = "https://github.com/mcpplibs/lua"
78

89
[lib]
9-
# The primary module interface lives at `src/capi/lua.cppm`. The default
10-
# convention would look at `src/lua.cppm` (last segment of the package
11-
# name), so override explicitly.
1210
path = "src/capi/lua.cppm"
1311

1412
[targets.capi-lua]
1513
kind = "lib"
1614

17-
# `lua` is the upstream Lua 5.4 C library shipped via mcpp-index. mcpp
18-
# 0.0.3 propagates its headers (lua.h / lauxlib.h / lualib.h) into our
19-
# compile rule via the transitive include-dir walk.
2015
[dependencies]
2116
lua = "5.4.7"
2217

23-
# `mcpp test` discovers tests/main.cpp automatically.
2418
[dev-dependencies]
2519
gtest = "1.15.2"

0 commit comments

Comments
 (0)