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
Dependency cleanup #37
Conversation
This release made the `Color` type `impl Copy` which is used in this crate.
This fixes `-Z minimal-versions` builds because this version of `toml` requires sufficient versions of its 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.
Thanks! Would it be possible to continue using the serde derive macros through the serde::{Deserialize, Serialize}
reexport? That is the approach recommended in https://serde.rs/derive.html.
No, because |
Oh, it would be. However, this would leave |
8b3baf1
to
57c9bd4
Compare
I maintain Serde as well so it feels like we should fix it there. Fixing this this way in this crate doesn't seem like the right fix. Could you send a PR to serde instead? |
The documentation for `serde`'s `derive` feature states that it should really only be used for libraries with an optional `serde` feature themselves. That's not happening here. However, the need to split it is also required by `-Z minimal-versions` builds. Without a direct dependency, `serde_derive` 1.0.0 gets chosen. This is not suitable for this crate because it uses the `alias` feature. 1.0.103 is selected because it is the version that is compatible with `-Z minimal-versions`.
57c9bd4
to
dc70721
Compare
Now depends on a release of serde-rs/serde#1664 |
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!
Published in 1.0.18. |
Is it worth trying to find the actual minimum version of
serde
fortoml-rs
? See toml-rs/toml-rs@381d020 for details on that change.