Skip to content
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

Updated documentation #60

Closed
wants to merge 3 commits into from
Closed

Updated documentation #60

wants to merge 3 commits into from

Conversation

Warfields
Copy link

Which crate to use was not obvious since serde_with_macros appears as its own crate on docs.rs

Which crate to use was not obvious since serde_with_macros appears as its own crate on docs.rs
@Warfields
Copy link
Author

To prevent issues like #59

@Warfields Warfields closed this Jun 18, 2019
@jonasbb
Copy link
Owner

jonasbb commented Jun 19, 2019

Hi @Warfields, thanks for the effort. Unfortunately, I don't think it is possible to do exactly what you were planning here. The serde_with crate cannot be used from within serde_with_macros, as otherwise this would create a circular dependency between the two crates.

I would prefer to use the #[doc(inline)] attribute on the proc_macro, but this doesn't work, since there is a rustc limitation right now (#49).
I will improve the documentation with adding some hints, that everything from serde_with_macros is re-exported in serde_with.

jonasbb added a commit that referenced this pull request Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants