Override dependency of a dependency

Hello

I see a similar entry here : Override foreign dependencies with other versions? - #2 by francois

I'm working on audio, with two main crates 'rodio' and 'cpal'

myCrate uses cpal and rodio, AND rodio use cpal too as dep.

I use the git version of cpal (not pushed yet), and it conflicts with the one used by rodio.
How can I force rodio's dep to use the same version of cpal as my crate ??

Thanks !

Adding a patch should work. Note that the patched code must have the same version in Cargo.toml as the original version required by your dependency.

2 Likes

thank you :slight_smile:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.