Use Cargo fetch to only download git dependencies?

⚓ rust    📅 2025-05-16    👤 surdeus    👁️ 5      

surdeus

Warning

This post was published 45 days ago. The information described in this article may have changed.

Is there a way to use "cargo fetch" to only download dependencies which are Git repositories? There doesn't seem to be a specific option under fetch.

I'm not aware of a way to split up Cargo.toml into multiple files, otherwise I could move the git dependencies into a separate file and just point to that using --manifest-path, but I can't find a way to do that.

Many thanks.

1 post - 1 participant

Read full topic

🏷️ rust_feed