Repository navigation
docs: Add [package.metadata.docs.rs] and doc_auto_cfg - #350
Conversation
#### Problem A few packages aren't configured properly for the docs.rs build to handle features. #### Summary of changes Add `[package.metadata.docs.rs]` to Cargo.toml files that don't have it, and `#![cfg_attr(docsrs, feature(doc_auto_cfg))]` to lib.rs files that don't have it either. Also, add a CI step to make sure that all Cargo.toml and lib.rs files have the proper annotations.
|
If this PR represents a change to the sysvar layout, please open a follow-up PR to update the JavaScript client |
|
If this PR represents a change to the sysvar layout, please open a follow-up PR to update the JavaScript client |
yihau
left a comment
There was a problem hiding this comment.
🔥
(nit: maybe we can add ^ to the regex in scripts/check-doc-features.sh or comments can trick the checker haha)
|
Great idea, done! |
|
If this PR represents a change to the sysvar layout, please open a follow-up PR to update the JavaScript client |
Problem
A few packages aren't configured properly for the docs.rs build to handle features.
Summary of changes
Add
[package.metadata.docs.rs]to Cargo.toml files that don't have it, and#![cfg_attr(docsrs, feature(doc_auto_cfg))]to lib.rs files that don't have it either.Also, add a CI step to make sure that all Cargo.toml and lib.rs files have the proper annotations.