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

Fix missing solana_sdk module docs #24577

Merged
merged 1 commit into from Apr 22, 2022

Conversation

brson
Copy link
Contributor

@brson brson commented Apr 22, 2022

Problem

The API docs for solana_sdk are missing several modules.

Summary of Changes

As described in #23326 (comment), this is happening because of an interaction that I don't fully understand between reexports in solana_program::example_mocks::solana_sdk and similar reexports in solana_sdk. Essentially, in this case rustdoc appears to choose the first reexport it finds to document, and leaves subsequent reexports undocumented.

Reordering the declaration of solana_program::example_mocks causes rustdoc to choose to document the reexports in solana_sdk.

This is a hack, and this patch documents it as such. It may be possible to fix within rustdoc itself, but that is not clear.

Fixes #23326

@mergify mergify bot added the community Community contribution label Apr 22, 2022
@mergify mergify bot requested a review from a team April 22, 2022 02:05
@codecov
Copy link

codecov bot commented Apr 22, 2022

Codecov Report

Merging #24577 (27e9a10) into master (96d977f) will increase coverage by 0.0%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #24577   +/-   ##
=======================================
  Coverage    82.0%    82.0%           
=======================================
  Files         593      593           
  Lines      164346   164346           
=======================================
+ Hits       134826   134886   +60     
+ Misses      29520    29460   -60     

@jstarry jstarry added automerge Merge this Pull Request automatically once CI passes v1.9 labels Apr 22, 2022
@mergify mergify bot merged commit 7206f89 into solana-labs:master Apr 22, 2022
mergify bot pushed a commit that referenced this pull request Apr 22, 2022
…ce files (#24577)

(cherry picked from commit 7206f89)

# Conflicts:
#	sdk/program/src/lib.rs
@jstarry
Copy link
Member

jstarry commented Apr 22, 2022

Thanks for the fix!

mergify bot pushed a commit that referenced this pull request Apr 22, 2022
…ce files (#24577)

(cherry picked from commit 7206f89)

# Conflicts:
#	sdk/program/src/lib.rs
jstarry added a commit that referenced this pull request Apr 22, 2022
* Move solana_program::example_mocks declaration to appear last in source files (#24577)

(cherry picked from commit 7206f89)

# Conflicts:
#	sdk/program/src/lib.rs

* fix conflicts

Co-authored-by: Brian Anderson <andersrb@gmail.com>
Co-authored-by: Justin Starry <justin@solana.com>
jstarry added a commit that referenced this pull request Apr 22, 2022
* Move solana_program::example_mocks declaration to appear last in source files (#24577)

(cherry picked from commit 7206f89)

# Conflicts:
#	sdk/program/src/lib.rs

* fix conflicts

Co-authored-by: Brian Anderson <andersrb@gmail.com>
Co-authored-by: Justin Starry <justin@solana.com>
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Apr 22, 2022
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Jun 29, 2022
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Jun 30, 2022
jeffwashington pushed a commit to jeffwashington/solana that referenced this pull request Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SystemInstructions link on docs.solana.com does not work for version 1.9.9
2 participants