Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计通过

cargo-toml-validator货物 toml 验证器

Agent Skill

cargo-toml-validator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 OpenClaw 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,644

周安装

108

GitHub Stars

公开资料未说明

下载量

855
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cargo-toml-validator(货物 toml 验证器)
来源仓库:https://github.com/charlie-morrison/cargo-toml-validator
安装命令:
openclaw skills install cargo-toml-validator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install cargo-toml-validator

简介

cargo-toml-validator 检测 Rust 项目 Cargo.toml 文件的依赖与元数据问题。

  • 适用于 Rust 开发者确保项目可编译、发布合规与依赖安全。
  • 通过 clawhub 安装,集成于 OpenClaw,支持工作区与 crates.io 发布检查。
  • 使用前需确保本地存在有效 Cargo.toml 文件路径。
  • 建议结合 CI/CD 流程自动化运行,及时修复发现的问题。

SKILL.md

name
cargo-toml-validator
description
Validate Rust Cargo.toml manifests for dependency issues, missing metadata, feature conflicts, workspace config, and crates.io publishing readiness. Use when validating Rust project configs, auditing dependencies, or preparing crates for publishing.

Cargo.toml Validator

Validate Rust Cargo.toml manifest files for structural correctness, dependency hygiene, feature configuration, workspace setup, and crates.io publishing readiness. Uses Python 3.11+ tomllib for native TOML parsing — no external dependencies.

Commands

validate — Full validation with all rules

python3 scripts/cargo_toml_validator.py validate Cargo.toml
python3 scripts/cargo_toml_validator.py validate Cargo.toml --strict
python3 scripts/cargo_toml_validator.py validate Cargo.toml --format json

check — Quick check (errors and warnings only)

python3 scripts/cargo_toml_validator.py check Cargo.toml
python3 scripts/cargo_toml_validator.py check Cargo.toml --format summary

explain — Show all rules with descriptions

python3 scripts/cargo_toml_validator.py explain Cargo.toml
python3 scripts/cargo_toml_validator.py explain Cargo.toml --format json

suggest — Run validation and propose fixes

python3 scripts/cargo_toml_validator.py suggest Cargo.toml
python3 scripts/cargo_toml_validator.py suggest Cargo.toml --format json

Flags

FlagDescription
--strictTreat warnings as errors — exit code 1 (CI-friendly)
--format textHuman-readable output (default)
--format jsonMachine-readable JSON
--format summaryCompact summary with counts

Validation Rules (24)

Structure (5)

RuleSeverityDescription
S1errorFile not found or unreadable
S2errorEmpty file
S3errorInvalid TOML syntax
S4error/warningMissing [package] section (error for bins/libs, warning for virtual workspaces)
S5error/warningMissing required fields: name, version (error), edition (warning)

Package Metadata (4)

RuleSeverityDescription
M1warningMissing edition field (defaults to 2015)
M2infoOutdated edition (2015/2018 when 2021/2024 available)
M3warningMissing license or license-file for crates.io
M4warningMissing description for crates.io

Dependencies (6)

RuleSeverityDescription
D1errorWildcard version *
D2warningUnpinned dependency without version specifier
D3warningGit dependency without rev/tag/branch pin
D4infoPath dependency (blocks crates.io publish)
D5warningDuplicate dep in [dependencies] and [dev-dependencies] with different versions
D6infoDeprecated crate name (failure, error-chain, iron, rustc-serialize, old hyper/tokio/actix-web/rocket/time)

Features (3)

RuleSeverityDescription
F1errorFeature enables non-existent dependency
F2warningEmpty feature (no deps or sub-features)
F3errorCircular feature dependencies

Workspace (3)

RuleSeverityDescription
W1warning[workspace] with no members
W2infoBoth [package] and [workspace] without members (ambiguous)
W3info[workspace.dependencies] detected — hint about workspace = true in members

Best Practices (3+)

RuleSeverityDescription
B1infoMissing documentation link for published crates
B2infoBuild script without [build-dependencies]
B3infoVery large number of dependencies (>30)
B4infoMissing repository/homepage URL

Exit Codes

CodeMeaning
0No errors (warnings allowed unless --strict)
1Errors found (or warnings in --strict mode)
2File not found / parse error

Example Output

Cargo.toml validate — Cargo.toml
=================================
[ERROR  ] S5: Missing required field: package.version
         Set version directly or use version.workspace = true.
[WARNING] M1: Missing edition field — defaults to 2015
         Add edition = "2021" or edition = "2024" to [package].
[WARNING] D3: Git dependency 'my-fork' in [dependencies] is not pinned
         Pin to a rev, tag, or branch for reproducibility. URL: https://github.com/user/fork
[INFO   ] D4: Path dependency 'utils' in [dependencies] — blocks crates.io publish
         Path: ../utils. Fine for local dev, but won't work on crates.io.
[INFO   ] B4: Missing repository and homepage URL
         Add repository = "https://github.com/..." to [package] for crates.io visibility.

Result: INVALID
Summary: 1 error(s), 2 warning(s), 2 info

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77.47%
按下载量换算662

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills