Skip to content

Commit 29619cb

Browse files
committed
chore: bump mcpp 0.0.13 + tinyhttps 0.2.3 + release 0.2.6
- mcpp.toml: version 0.2.5 → 0.2.6, dep tinyhttps 0.2.3 with canonical namespace syntax ([dependencies.mcpplibs]) - .xlings.json: mcpp 0.0.6 → 0.0.13 - CI: xlings 0.4.31, add xlings update step, update cache key - README: add mcpp usage instructions
1 parent 305e72e commit 29619cb

4 files changed

Lines changed: 38 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
- name: Install xlings
1616
env:
17-
XLINGS_VERSION: 0.4.25
17+
XLINGS_VERSION: 0.4.31
1818
run: |
1919
tarball="xlings-${XLINGS_VERSION}-linux-x86_64.tar.gz"
2020
curl -fsSL -o "/tmp/${tarball}" \
@@ -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.7)
26+
- name: Refresh package index
27+
run: xlings update
28+
29+
- name: Install workspace tools (.xlings.json → mcpp 0.0.13)
2730
run: xlings install -y
2831

29-
# Cache mcpp's self-bootstrapped sandbox (musl-gcc + binutils +
30-
# glibc + ninja + patchelf, ~800 MB). Toolchain set is pinned by
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.7/registry
36-
key: mcpp-sandbox-${{ runner.os }}-mcpp0.0.7
35+
path: ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.13/registry
36+
key: mcpp-sandbox-${{ runner.os }}-mcpp0.0.13
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.7" }
3+
"mcpp": { "linux": "0.0.13" }
44
}
55
}

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,34 @@ target("demo")
9191

9292
See [docs/en/getting-started.md](docs/en/getting-started.md), [docs/en/providers.md](docs/en/providers.md), and [docs/en/README.md](docs/en/README.md) for more setup and readiness detail.
9393

94+
## 使用 mcpp 构建
95+
96+
### 添加依赖
97+
98+
```bash
99+
mcpp add llmapi@0.2.5
100+
```
101+
102+
或在 `mcpp.toml` 中手动添加:
103+
104+
```toml
105+
[dependencies]
106+
llmapi = "0.2.5"
107+
```
108+
109+
### 构建
110+
111+
```bash
112+
mcpp build
113+
```
114+
115+
### 代码示例
116+
117+
```cpp
118+
import mcpplibs.llmapi;
119+
// ... usage example
120+
```
121+
94122
## License
95123

96124
Apache-2.0 - see [LICENSE](LICENSE)

mcpp.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
namespace = "mcpplibs"
33
name = "llmapi"
4-
version = "0.2.5"
4+
version = "0.2.6"
55
description = "Modern C++ LLM API client with openai-compatible support"
66
license = "Apache-2.0"
77
repo = "https://github.com/mcpplibs/llmapi"
@@ -13,4 +13,4 @@ include_dirs = ["src/json"]
1313
kind = "lib"
1414

1515
[dependencies.mcpplibs]
16-
tinyhttps = "0.2.2"
16+
tinyhttps = "0.2.3"

0 commit comments

Comments
 (0)