-
-
Notifications
You must be signed in to change notification settings - Fork 769
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
Serialize doc comments #1430
Comments
That's a neat idea! I am closing the issue because I would prefer not to support this in Serde, but you could implement your own derive macro using Syn that makes doc comments available to a toml serializer. |
@dtolnay could you elaborate on why this (or in general, passing other metadata attributes to serializers) is not suitable in syn? I don't see how something like dtolnay/serde-yaml#145 can be integrated with another proc macei easily, without rewriting/copying the whole serialization interface. |
@dtolnay could we support it under a feature flag? |
I would really love that to serialize configuration files |
I'll point to a related suggestion from
toml-rs
. On that issue, Alex pointed out thatserde
doesn't exposes thedoc comments
, and if it's feasible, I'd like to suggest such feature.The text was updated successfully, but these errors were encountered: