Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the Cargo dependency situation #20

Open
helgoboss opened this issue May 16, 2020 · 0 comments
Open

Improve the Cargo dependency situation #20

helgoboss opened this issue May 16, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@helgoboss
Copy link
Owner

The current situation is this: Since AFAIK there are no transitive dependencies in Cargo, if someone wants to use reaper-medium (medium-level API), they also have to depend on reaper-low. And not just that. It must be exactly the version that reaper-medium uses. The situation gets worse if one wants to use reaper-high.

I don't know what's the perfect way to handle this in Rust. I've seen that some crates re-export stuff. E.g. reaper-medium could re-export some things from reaper-low. But one thing I really don't like about this is that suddenly for one symbol there are two ways to address that symbol. The same symbol is available in 2 crates. That's very confusing.

There's an RFC that might help: rust-lang/rust#44663

If anyone has an idea, please let me know.

@helgoboss helgoboss added enhancement New feature or request help wanted Extra attention is needed labels May 16, 2020
@helgoboss helgoboss changed the title Improve the dependencies situation Improve the Cargo dependency situation May 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant