Cargo Idea: follows attribute for inheriting versions between dependencies

For the compatible semver-major version Cargo will automatically unify versions already, no extra annotations needed.

In other cases I think the best practice is to re-export the dependency. You can use reqwest::Url instead of url::Url.

There has been a related RFC for it already:

1 Like