Open
Description
Describe the problem you are trying to solve
I understand that cargo has a feature to replace dependency source to self-hosted: https://doc.rust-lang.org/cargo/reference/source-replacement.html
However, it seems that I cannot do source replacement of source.crates-io
only for [dependencies]
but not for [build-dependencies]
?
Describe the solution you'd like
Handle source replacement separately like this:
[source.dependencies.crates-io]
replace-with = "my-vendor-source-for-build-deps"
[source.dev-dependencies.crates-io]
replace-with = "my-vendor-source-for-dev-deps"
Notes
This issue has been discussed here: https://users.rust-lang.org/t/source-replacement-for-dependencies-only-but-not-for-build-dependencies/35411