You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The serde feature for vec-map is currently counter-intuitively called edres, presumably because of rust-lang/cargo#1286. There is a workaround for this problem in serde itself (https://github.com/serde-rs/serde/blob/v1.0.0/serde/src/lib.rs#L222-L260), whereby you depend on serde with the derive feature, which in turn re-exports derive(Serialize, Deserialize) from serde_derive. This allows the feature of the top-level crate (in this case vec-map) to also be called serde. Or rather, it allows you to not explicitly add a feature called serde, but instead rely on the behavior that optional dependencies are implicitly also features.
The text was updated successfully, but these errors were encountered:
The
serde
feature forvec-map
is currently counter-intuitively callededres
, presumably because of rust-lang/cargo#1286. There is a workaround for this problem inserde
itself (https://github.com/serde-rs/serde/blob/v1.0.0/serde/src/lib.rs#L222-L260), whereby you depend onserde
with thederive
feature, which in turn re-exportsderive(Serialize, Deserialize)
fromserde_derive
. This allows the feature of the top-level crate (in this casevec-map
) to also be calledserde
. Or rather, it allows you to not explicitly add a feature calledserde
, but instead rely on the behavior that optional dependencies are implicitly also features.The text was updated successfully, but these errors were encountered: