-
Notifications
You must be signed in to change notification settings - Fork 2.7k
chore(deps): Depend on serde_core
in cargo-platform
#15992
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to this changing cargo-platform, can you also bump its version?
[dependencies] | ||
serde_core.workspace = true | ||
|
||
[target.'cfg(any())'.dependencies] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for this target table?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It bumps the requirement of serde
to the minimum required for serde_core
. I don't think this is required, however other serde_core
users add this cfg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a comment explaining that? My understanding is that if someone has a lockfile with a version of serde from before serde_core was added, serde will stay on the older version while cargo-platform will use serde_core and thus have the wrong definitions.
0c9923f
to
5542e96
Compare
`cargo-platform` does not make use of serde derive macros, thus it can depend on `serde_core` instead of `serde` to speed up users' compile times. See the documentation of [`serde_core`](https://docs.rs/serde_core) for more details.
5542e96
to
cbebafb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
cargo-platform
does not make use of serde derive macros, thus it can depend onserde_core
instead ofserde
to speed up users' compile times.See the documentation of
serde_core
for more details.