This topic describes how to create a Cargo repository. This is required before publishing and installing Cargo packages. Artifactory supports two kinds of Cargo repositories:
Local repositories: Store and share first- and second-party packages with your organization
Remote repositories: Download packages from remote locations including external package registries or other Artifactory instances
For more information on JFrog repositories, see Repository Management Overview.
Prerequisites:
You need Admin or Project Admin permissions in Artifactory to create a repository.
Your Artifactory instance must have a custom base URL configured. For more information, see General Settings.
To create a Cargo repository:
In the Administration tab, click Repositories | Create a Repository.
Select the type of repository you want to create: local or remote.
Select the Cargo package type.
Configure the required fields for the repository:
In the Repository Key field, type a meaningful name for the repository. For example,
cargo-local. For more information on local repositories and their settings, see Local Repositories.For remote repositories, verify the Registry URL and update as needed. For more information on remote repositories and their settings, see Remote Repositories.
Registry URLs for Remote Repositories
For external repositories, the Registry URL should match the repository URL. For example,
https://index.crates.io.For Smart remote repositories, the URL should be the same as the repository URL, for example:
https://company.jfrog.io/artifactory/cargo-repo, while the registry URL should point to the index path, for example:https://company.jfrog.io/artifactory/api/cargo/cargo-repo/index/.
Click Create Repository. The repository is created and the Repositories window is displayed.