Skip to content

Rust docs: Crate root link points to "folder" and not index page #137857

Open
@loganmzz

Description

@loganmzz

Rust docs support linking to many crate items by name (functions, modules, ...) including crates.

However, the generated crate links points to folder, not index page (index.html) which doesn't work locally or without web server with right directives.

//! Link to [`serde`] crate

Demo repository: https://github.com/loganmzz/rust-docs-issue-link-crate-root

Tested with cargo 1.85.0 (d73d2caf9 2024-12-31):

On:

  • rust_docs_issue_link_crate_root
    • Only link to serde
  • rust_docs_issue_link_crate_root_sub
    • No links

Metadata

Metadata

Labels

A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameT-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