Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
serde::Serialize -> serde_derive::Serialize
serde:: doesn't work on tests on CI
- Loading branch information
44c7063
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.
FYI, It seems you were bitten by a change in trybuild and peculiarities of how Cargo resolves and unifies features and dependencies:
dtolnay/trybuild@7c04ae7
You don't have the
serde/derive
feature enabled inCargo.toml
but have implicitly relied on it, which only worked because Cargo pulled it in anyway becausetrybuild
depended on it.But as soon as trybuild stopped using the
serde/derive
feature, the dependency could no longer be resolved.If you want to use
serde::{Serialize,Deserialize}
correctly, you'd need to explicitly enable thederive
feature of theserde
dev-dependency explicitly (or switch to usingserde_derive
directly, as you have done here).