Skip to content

Instantly share code, notes, and snippets.

@albertocavalcante
Created September 20, 2025 03:05
Show Gist options
  • Save albertocavalcante/61c03ecedd841705a3f662b3fb55d20b to your computer and use it in GitHub Desktop.
Save albertocavalcante/61c03ecedd841705a3f662b3fb55d20b to your computer and use it in GitHub Desktop.
Cargo with JFrog
# cat ~/.cargo/config.toml
# Cargo Registry Configuration - Anonymous Access
# Generated by complete-cargo-setup.sh
# Purpose: Configure Cargo to use JFrog proxy for all crate access
[source.crates-io]
replace-with = "jfrog"
[source.jfrog]
registry = "sparse+https://trialw4lzh7.jfrog.io/artifactory/api/cargo/cargo/index/"
[registries.jfrog-staging]
index = "sparse+https://trialw4lzh7.jfrog.io/artifactory/api/cargo/cargo-staging/index/"
[registries.jfrog-production]
index = "sparse+https://trialw4lzh7.jfrog.io/artifactory/api/cargo/cargo-production/index/"
[net]
retry = 3
offline = false
[http]
timeout = 30
cainfo = "/opt/homebrew/etc/ca-certificates/cert.pem" # Adjust path as needed
[build]
jobs = 4
[term]
verbose = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment