I have two crates X
and Z
and I want to use both but X
depends on Z
of on some specific version. For example, mongodb depends on tokio 0.2 and I was using tokio 0.3.
X
does not re-export Z
so I (think) have to manually specify Z
in Cargo.toml
. If I specify the wrong version, it might break. How can I tell cargo to use whatever version of Z
that X
requires?