-
Notifications
You must be signed in to change notification settings - Fork 111
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
Move derive macros docs to scylla crate #907
Conversation
After this is merged, we should release a new version, so that users are able to find documentation. |
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.
While the documentation in the scylla
crate looks much better, it looks like the docstrings from multiple crates are still being squashed. For example, the message about the macro being documented in the scylla
crate still appears in scylla::macros::ScyllaCql
:
However, I can't find anything on the net about overriding docstrings on reexport, so I can't suggest any way to get rid of them (if it is possible at all). As we discussed on slack, let's at least make the message from scylla-macros
more separated from the rest by putting a separator at the end of the docstrings in scylla
.
a7c7b06
to
9261bed
Compare
This will be required to move documentation of serialization macros into scylla crate. This in turn is required to workaround the issue that documentation for those macros is not rendered on docs.rs correctly.
When both original item and re-export are documented, documentations are merged. Before this commit, both original item and re-export were documented - identically or at least very similarly. This caused docs in scylla-cql crate to be copy-pasted twice. Replace docs with stubs pointing to the scylla crate to avoid it and point users to proper documentation.
This module is now so small it doesn't make much sens to keep it in separate file.
Documentation was moved from scylla-cql to scylla, which made some paths used in those docs incorrect. This commit updates paths to correct ones.
Rustdocs merges documentation of re-exports with documentation of original item. Because of this there is a need for separator, so that stubs from scylla-macros crate are not mixed up with docs present in scylla crate.
Without those lines, whole doc for an item is merged and shown in the summary, which makes it hard to read.
9261bed
to
7933112
Compare
v2
|
This PR moves docs for serialization / deserialization related derive macros from scylla-cql crate to scylla crate.
This is done to work around the issue that this documentation was not rendered correctly on docs.rs for scylla crate.
It's hard to tell why that is exactly - it's probably a bug / limitation in rustdoc.
It looks like when we have item X in crate A, re-export X as Y in crate B and document it, and re-export Y az Z in crate C,
Y's docs won't be rendered in crate C, only X's and Z's will.
Fixes: #904
Pre-review checklist
./docs/source/
.Fixes:
annotations to PR description.