Skip to content

Handle cyclic dependencies #997

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

Merged
merged 2 commits into from
Apr 10, 2023

Conversation

baloo
Copy link
Member

@baloo baloo commented Apr 10, 2023

When cyclic dependencies are used for either doctests or integrations tests (x509-cert depends on rsa which depends back to der in this workspace), the compiler will complain about lack of trait implementation because two crates will be pulled. One from this checkout as well as one from crates.io.

This migrates the inclusion from local path in each Cargo.toml to a global patch.crates-io.

When cyclic dependencies are used for either doctests or integrations
tests (`x509-cert` depends on `rsa` which depends back to `der` in this
workspace), the compiler will complain about lack of trait
implementation because two crates will be pulled. One from this checkout
as well as one from crates.io.

This migrates the inclusion from local `path` in each Cargo.toml to a
global `patch.crates-io`.
@baloo
Copy link
Member Author

baloo commented Apr 10, 2023

Not sure "cyclic" is the best adjective here. Redundant? Duplicate?

@tarcieri
Copy link
Member

I'd call it "cyclic". That's fine.

@baloo
Copy link
Member Author

baloo commented Apr 10, 2023

@tarcieri before you merge this, I'd like to throw a rebase of #764 in CI to confirm this fix the issue.

Fixup missing `std::thread_local` import.
@baloo
Copy link
Member Author

baloo commented Apr 10, 2023

alright, well that fixed it.

@tarcieri tarcieri merged commit eb1b8ce into RustCrypto:master Apr 10, 2023
@baloo baloo deleted the baloo/global-patch-crates branch April 10, 2023 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants