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

Use exact dependencies on other serde crates #472

Merged
merged 2 commits into from
Jul 30, 2016
Merged

Use exact dependencies on other serde crates #472

merged 2 commits into from
Jul 30, 2016

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Jul 29, 2016

@azerupi @oli-obk @erickt do you think this would fix the problem in #470? Are there other problems it could cause?

When compiling an old serde_macros this prevents it from depending on a new serde_codegen which may be on an incompatible quasi version.


[dev-dependencies]
clippy = "^0.*"
compiletest_rs = "^0.2.0"
fnv = "1.0"
rustc-serialize = "^0.3.16"
serde = "0.8.0"
serde_test = "0.8.0"
serde = "=0.8.0"
Copy link

Choose a reason for hiding this comment

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

Does serde need to be constrained?

Copy link
Member Author

Choose a reason for hiding this comment

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

No I guess not - I just changed every dependency of a serde crate on a different serde crate. We should be okay constraining just serde_macros->serde_codegen and serde_codegen->serde_codegen_internals.

@oli-obk
Copy link
Member

oli-obk commented Jul 30, 2016

I think this is the correct solution. Serde_macros is so finnicky, technically it should require major version bumps of serde_codegen whenever it's adjusted for a new nightly

@dtolnay
Copy link
Member Author

dtolnay commented Jul 30, 2016

@oli-obk opinion on constraining all or just those two dependencies? I think constraining just serde_macros->serde_codegen and serde_codegen->serde_codegen_internals is less likely to cause trouble.

@oli-obk
Copy link
Member

oli-obk commented Jul 30, 2016

Yea, there's no point in restricting the serde version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants