Skip to content

Commit 620059d

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 6e15aaf commit 620059d

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

mcpp.toml

Lines changed: 5 additions & 11 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 — import mcpplibs.capi.lua;"
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.
20-
[dependencies]
15+
[dependencies.compat]
2116
lua = "5.4.7"
2217

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

0 commit comments

Comments
 (0)