Cargo can not use the git local proxy

āš“ Rust    šŸ“… 2026-03-19    šŸ‘¤ surdeus    šŸ‘ļø 9      

surdeus

When I add the following dependencies to cargo.toml, Cargo uses the global Git proxy to download them. However, even when I set a local proxy for a specific project, Cargo still uses the global proxy. This is not the expected behavior.
I need to set up different proxies for different projects. Aside from changing the global proxy when switching projects, I’m wondering if there are any other solutions.

tree-sitter-heex = { git = "https://github.com/zed-industries/tree-sitter-heex", rev = "1dd45142fbb05562e35b2040c6129c9bca346592" }

1 post - 1 participant

Read full topic

šŸ·ļø Rust_feed