Metadata-Version: 2.4
Name: rulestamp-cargo-publish-gate
Version: 1.0.5
Summary: Names every crates.io publish blocker in a Cargo.toml before the upload burns a version number. (bundled Node.js runtime)
Author-email: Rulestamp <support@getreadystack.com>
License: Proprietary - see LICENSE.txt
Project-URL: Homepage, https://getreadystack.com/tools/cargo-publish-gate?ref=pypi
Project-URL: Documentation, https://getreadystack.com/tools/cargo-publish-gate?ref=pypi
Project-URL: Support, https://getreadystack.com/support
Keywords: cargo,crates.io,toml,rust,publish,manifest,lint
Classifier: Programming Language :: Python :: 3
Classifier: Environment :: Console
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: nodejs-wheel-binaries>=20
Dynamic: license-file

# Cargo.toml Publish Gate - crates.io

> Runs the same checker as our npm package on a Node.js runtime that pip installs for you (`nodejs-wheel-binaries`) - no system Node.js needed. Your files are checked locally.

![Cargo.toml Publish Gate - crates.io — finds the line](https://getreadystack.com/img/promo/cargo-publish-gate_demo.gif)

![Cargo.toml Publish Gate - crates.io](https://getreadystack.com/img/promo/sku101948_result_card.jpg)

Names every crates.io publish blocker in a Cargo.toml before the upload burns a version number.

## Install

```
cargo-publish-gate file
```

Node 18+. The same 13 rules as the VS Code extension, from a terminal or CI.

## Free

- Open any Cargo.toml, run the check, and read every crates.io publish blocker in it with its line number and its fix - nothing hidden, no countdown, no watermark.
- `--rules` lists every rule

## With a licence ($29 once)

- Gates every Cargo.toml in the workspace in one pass and writes a dated pre-publish report file you keep and attach to the release pull request.

```
cargo-publish-gate --dir ./templates --report html --out report.html
```

A contract Rust engineer on the open freelance market starts near $50 an hour, and the hand check of one release manifest against the crates.io rules takes most of that hour, at every release.

## Use from an AI agent (MCP)

Claude Code · Cursor · Windsurf · any MCP client - add to your MCP config:

```json
{ "mcpServers": { "cargo-publish-gate": { "command": "cargo-publish-gate", "args": ["--mcp"] } } }
```

Tools: `check_text` and `check_file` (free) · `check_dir` (licence). The agent gets every finding with the line number.

## Use in CI

```yaml
- name: Cargo.toml Publish Gate - crates.io
  run: pip install rulestamp-cargo-publish-gate && cargo-publish-gate --dir . --ci
```


The folder sweep, reports and CI mode need one licence — one payment, no subscription. Set `READYSTACK_LICENSE=<key>` or run `--license <key>` once.

[Get a licence](https://getreadystack.com/api/buy/cl/polar_cl_712ED1or9Ov8WeL57O3UARKq30s2RtRcwPsHH2PaSpU)


<!-- cargo publish gate -->


## Install (PyPI)

```
pip install rulestamp-cargo-publish-gate
cargo-publish-gate --help
```
