-
Notifications
You must be signed in to change notification settings - Fork 606
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
Crates with inter-dependencies #27
Comments
Hm this is unfortunate. We could modify the verification logic to ignore dev-dependencies, but this is in general where circular dependencies are... interesting! |
I'm curious, do workspaces help this at all? |
Perhaps, yeah. For the circular case we'd just fundamentally need to either:
For the former we could add |
This issue could become more prominent with procedural macros 2.0, especially since the re-exporting macro pattern could increase the chances of a circular dependency sneaking in. |
And now there's a discussion on I'm in favour of having a "batch publish" for workspaces, even just for non-circular dependencies it would save me having to work out what order I need to publish crates in. One slight complication is that not every crate in the workspace might have changed. What I'd like in that case is for |
I think this is more of a cargo issue than a crates.io issue; I'm pretty sure the complaining is coming from cargo and not at all from crates.io. So closing as a duplicate of rust-lang/cargo#1169 or as a duplicate of rust-lang/cargo#4242. |
I'm currently in the following situation:
glium
, and a crate namedglium_macros
glium
is a dependency ofglium_macros
with a path source (glium_macros
generates code that usesglium
)glium_macros
is a dev-dependency ofglium
with a path source (because the macros are used in the examples and the tests)This system currently works (for example
cargo test
works), but I can't publish them.If I try to publish
glium
, cargo complains that it can't findglium_macros
. If I try to publishglium_macros
, cargo complains that it can't findglium
.Even
cargo publish --no-verify
doesn't work.The text was updated successfully, but these errors were encountered: