8000 Make serde support more complete by saona-raimundo · Pull Request #550 · petgraph/petgraph · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 6 commits into from
Dec 23, 2024
Merged

Conversation

saona-raimundo
Copy link
Contributor

Related to #139

It adds serde support for small enums used as markers.

@bluss bluss added this to the 0.6.5 milestone Mar 6, 2024
Copy link
@justinlovinger justinlovinger left a 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).

@XVilka
Copy link
Member
XVilka commented Nov 24, 2024

@saona-raimundo could you please rebase on top of the latest master?

Serialization of these enums is needed for users and it does not harm to add a serialization implementation here.
Copy link
Member
@XVilka XVilka left a 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")]
    |       ^^^^^^^^^^^^^^^^^^^^^^^^

@saona-raimundo
Copy link
Contributor Author

Sorry for the mistake, I forgot to check compilation using the serde feature.
Thanks for reaching out.

@XVilka XVilka merged commit 382129c into petgraph:master Dec 23, 2024
7 checks passed
daehiff pushed a commit to daehiff/petgraph that referenced this pull request Dec 23, 2024
Related to petgraph#139 

It adds serde support for small enums used as markers.
daehiff pushed a commit to daehiff/petgraph that referenced this pull request Dec 23, 2024
Related to petgraph#139 

It adds serde support for small enums used as markers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: Awaiting some action by the PR/Issue author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0