Skip to content

Display doc comments for private types #911

Closed
@vignesh-sankaran

Description

@vignesh-sankaran

crates.io is documented as its own crate as cargo_registry, and the S3 interaction as cargo_registry_s3. I found out about how to display private types' documentation via cargo doc --no-defaults --passes collapse-docs --passes unindent-comments, but I don't think docs.rs has an option to do this for us. Is there an option to specify this another way e.g. in the Cargo.toml? Otherwise we could host the documentation on a different site ala Serde.

Tasks involved in completing this, added by @carols10cents:

  • Add a [package.metadata.docs.rs] to Cargo.toml as shown in this PR description
  • Set the rustdoc-args key to [ "--no-defaults --passes collapse-docs --passes unindent-comments" ]
  • Send in a PR and remind @carols10cents to release a new version of cargo-registry after merging the PR :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions