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

Help cargo to break dependency cycle caused by dev deps #3980

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

kornelski
Copy link
Contributor

Cargo can automatically remove path dependencies when publishing when they don't have a version specified.

This way it should be possible to publish crates without editing their Cargo.toml, and therefore keep their vcs metadata.

@weiznich weiznich requested a review from a team April 6, 2024 19:26
@pksunkara pksunkara enabled auto-merge April 6, 2024 19:32
@Ten0
Copy link
Member

Ten0 commented Apr 7, 2024

Doesn't that possibly break some doc links?

@Ten0 Ten0 disabled auto-merge April 7, 2024 10:13
@kornelski
Copy link
Contributor Author

I don't see how it could break doc links. To have any undocumented types you'd have to use types from the dev dependency in a non-test build of the library, and that is not allowed and won't compile.

@kornelski kornelski force-pushed the dev-cycle branch 2 times, most recently from 75eb67f to 1a093de Compare April 7, 2024 16:54
Copy link
Member

@Ten0 Ten0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right, I thought doclinks would be able to resolve through dev deps, but apparently they aren't (so cargo doc does yield an unresolved link warning)

okfm then ¯\_(ツ)_/¯

(Not sure why CI is failing though)

@weiznich
Copy link
Member

weiznich commented Apr 8, 2024

The failing CI is caused by a regression in rustc. I've filled rust-lang/rust#123622 for that.

@Ten0 Ten0 enabled auto-merge April 8, 2024 09:51
auto-merge was automatically disabled April 9, 2024 14:18

Head branch was pushed to by a user without write access

@weiznich
Copy link
Member

Would it be possible to rebase this PR on top of the latest master version to pull in the fixes for the CI setup? (Sorry for that…)

@weiznich
Copy link
Member

Thanks for submitting this PR ❤️

Merged via the queue into diesel-rs:master with commit 5045fdb Apr 10, 2024
48 checks passed
weiznich added a commit that referenced this pull request Apr 19, 2024
Help cargo to break dependency cycle caused by dev deps
@kornelski kornelski deleted the dev-cycle branch May 1, 2024 17:10
Ten0 added a commit to Ten0/serde_avro_fast that referenced this pull request Jun 14, 2024
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.

4 participants