-
Notifications
You must be signed in to change notification settings - Fork 399
Make serde support more complete #550
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.
Add serialization for Directed
. See #550 (comment).
@saona-raimundo could you please rebase on top of the latest |
Serialization of these enums is needed for users and it does not harm to add a serialization implementation here.
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.
Please fix compilation errors:
error[E0433]: failed to resolve: could not find `Serialize` in `serde`
--> src/lib.rs:178:47
|
178 | #[cfg_attr(feature = "serde-1", derive(serde::Serialize, serde::Deserialize))]
| ^^^^^^^^^ could not find `Serialize` in `serde`
|
note: found an item that was configured out
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.215/src/lib.rs:343:37
|
343 | pub use serde_derive::{Deserialize, Serialize};
| ^^^^^^^^^
note: the item is gated behind the `serde_derive` feature
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde-1.0.215/src/lib.rs:341:7
|
341 | #[cfg(feature = "serde_derive")]
| ^^^^^^^^^^^^^^^^^^^^^^^^
Sorry for the mistake, I forgot to check compilation using the serde feature. |
Related to petgraph#139 It adds serde support for small enums used as markers.
Related to petgraph#139 It adds serde support for small enums used as markers.
Related to #139
It adds serde support for small enums used as markers.