We have a rust project that has a dependency crate, we made changes to the dependency crate, but upstream cannot be done in a short time, so we keep a copy of the dependency crate locally, and use Replace tag in the root cargo.toml to point to the local replacement.
[replace]
"foo:0.0.1" = { path = '../../foo-local' }
The problem here is we have both linux and windows, we only want to override the dependency with local version for Windows, how do I do it?
Sincerely,
Chandler