
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Diff-cover, supercharged in Rust 🦀. Get instant, actionable coverage insights at ⚡ blazing speed ⚡ with a 🧠️ tiny memory footprint 🧠️. Built for modern CI and massive repos, it turns slow coverage checks into fast, reliable feedback you can trust.
shelldiff-coverage coverage.xml --diff-file diff.diff # Multiple coverage inputs (repeat or comma‑separated) diff-coverage coverage1.xml coverage2.xml --diff-file diff.diff # Multiple coverage inputs in a directory diff-coverage ./coverage/ --diff-file diff.diff # Fail the build if diff coverage drops below a threshold diff-coverage ./coverage/ coverage.xml --diff-file diff.diff --fail-under 80 # Output to CI formats diff-coverage coverage.xml --diff-file diff.diff --output gitlab=diff-cover.json diff-coverage coverage.xml --diff-file diff.diff --output json=diff-cover.json --output summary # Skip external packages from uncovered line calculations (regex supported) diff-coverage coverage.xml --diff-file diff.diff --skip-coverage-path '^pkg/mongodb'
Options
| Metric | Rust | Python | Improvement (Python / Rust) |
|---|---|---|---|
| Mean wall time | 2.47s | 108.23s | 43.90× |
| Max wall time | 3.66s | 109.74s | 29.98× |
| Mean peak RSS | 22.66 MB | 640.37 MB | 28.26× |
| Max peak RSS | 22.84 MB | 640.66 MB | 28.05× |
| Metric | Rust | Python | Improvement (Python / Rust) |
|---|---|---|---|
| Mean wall time | 2.10s | 227.24s | 108.24× |
| Max wall time | 4.11s | 240.35s | 58.48× |
| Mean peak RSS | 22.69 MB | 494.35 MB | 21.78× |
| Max peak RSS | 22.84 MB | 494.64 MB | 21.65× |
Peak RSS shown in MB (kB ÷ 1024).
Full benchmark results
Download the prebuilt archives from the https://github.com/tilaven/diff-coverage/releases.
bashcargo install diff-coverage
bashdocker run --rm -v "$PWD":/work -w /work tilaven/diff-coverage:<version>-alpine \ coverage.xml --diff-file diff.diff
Debian-based image (e.g. trixie) is available via versioned tags:
bashdocker run --rm -v "$PWD":/work -w /work tilaven/diff-coverage:<version>-debian-trixie \ coverage.xml --diff-file diff.diff
Minimal scratch image is available via versioned tags:
bashdocker run --rm -v "$PWD":/work -w /work tilaven/diff-coverage:<version>-scratch \ coverage.xml --diff-file diff.diff
bashcargo build
bashcargo run
bashcargo test
Push a version tag and GitHub Actions will run tests and attach executables to the GitHub Release:
bashgit tag v0.1.0 git push origin v0.1.0
Download the prebuilt archives from the GitHub Releases page.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务