Skip to content

rustdoc outputs text too large for text box #90351

Closed
@milobanks

Description

@milobanks

Problem

I created a crate with a file that is included at compile time with include_str!. When I generated the docs, I found that the file content was also printed in the documentation, and since it was rather long, it exceeded the dialog box.

Steps

  1. Include a file in a crate, that is contained within a global constant
  2. Generate the documentation
  3. Navigate to the documentation, and see roughly was is in the attached image.

Possible Solution(s)

No response

Notes

Link to image.

Version

cargo 1.55.0 (32da73ab1 2021-08-23)
release: 1.55.0
commit-hash: 32da73ab19417aa89686e1d85c1440b72fdf877d
commit-date: 2021-08-23

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions