{
  "slug": "registry/cargo",
  "title": "Cargo crates",
  "description": "Publish and install Rust crates with Cuitty Registry.",
  "url": "https://cuitty.com/docs/registry/cargo",
  "markdown_url": "https://cuitty.com/docs/registry/cargo.md",
  "json_url": "https://cuitty.com/docs/registry/cargo.json",
  "frontmatter": {
    "title": "Cargo crates",
    "description": "Publish and install Rust crates with Cuitty Registry.",
    "order": 4,
    "section": "Registry",
    "updatedAt": "2026-06-09"
  },
  "headings": [
    {
      "depth": 2,
      "slug": "configure-cargo",
      "text": "Configure Cargo"
    },
    {
      "depth": 2,
      "slug": "tokens",
      "text": "Tokens"
    },
    {
      "depth": 2,
      "slug": "index-behavior",
      "text": "Index behavior"
    }
  ],
  "body_markdown": "Cuitty Registry supports Cargo-compatible crate publishing, installation, yanking, and sparse index reads. Crate ownership is enforced through Registry namespaces and package maintainer grants.\n\n## Configure Cargo\n\nAdd a sparse registry to `.cargo/config.toml`:\n\n```toml\n[registries.cuitty]\nindex = \"sparse+https://registry.example.com/cargo/index/\"\n```\n\nPublish or install with the named registry:\n\n```bash\ncargo publish --registry cuitty\ncargo add my-crate --registry cuitty\n```\n\n## Tokens\n\nUse a Registry token scoped to the namespace or package:\n\n```bash\ncargo login --registry cuitty \"$CUITTY_REGISTRY_TOKEN\"\n```\n\nYank and unyank operations require package maintainer permission and write audit events.\n\n## Index behavior\n\nRegistry stores crate metadata and emits sparse-index entries from the Registry service. Operators can rebuild indexes from Store records if an index write fails or a migration changes index shape.",
  "links_out": []
}