---
title: Cargo crates
description: Publish and install Rust crates with Cuitty Registry.
section: Registry
order: 4
updatedAt: 2026-06-09
slug: registry/cargo
---
Cuitty Registry supports Cargo-compatible crate publishing, installation, yanking, and sparse index reads. Crate ownership is enforced through Registry namespaces and package maintainer grants.

## Configure Cargo

Add a sparse registry to `.cargo/config.toml`:

```toml
[registries.cuitty]
index = "sparse+https://registry.example.com/cargo/index/"
```

Publish or install with the named registry:

```bash
cargo publish --registry cuitty
cargo add my-crate --registry cuitty
```

## Tokens

Use a Registry token scoped to the namespace or package:

```bash
cargo login --registry cuitty "$CUITTY_REGISTRY_TOKEN"
```

Yank and unyank operations require package maintainer permission and write audit events.

## Index behavior

Registry 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.