Cargo
This documentation contains a user guide and samples regarding the use of private and public Cargo registries in Repsy Open Source. A Cargo repository is a registry for Rust crates. It serves the sparse registry protocol, so cargo publishes, resolves, downloads, yanks and searches crates without any extra tool.
The address of the registry index is the address of your instance’s repository port followed by the name of the repository, prefixed with sparse+ and ending with a slash: sparse+https://<your-repsy-host>/<repo-name>/. There is no username in it. Cargo sends one token, which is a deploy token.
Getting Started
- Creating a Private Cargo Registry: find or create a repository and get your deploy token.
- Publishing a Cargo Crate and Installing a Cargo Crate from Registry: the configuration,
cargo login,cargo publishandcargo addin short.
Tutorials
- Publishing and Using Crates with Cargo: a complete crate from
cargo newto a dependency in another project,cargo install,cargo search, what the web UI shows and the errors you may meet. - Yanking and Un-yanking Crates: withdraw a version from new dependency resolution and bring it back.
- Cargo in CI: give a pipeline a token through an environment variable and publish from it.
Was this page helpful?