Skip to content

Provide a way to interpolate crate version in html_root_url #42300

@dtolnay

Description

@dtolnay

In Serde we work around this by having a reminder in Cargo.toml to update the html_root_url when releasing a new version. serde-rs/serde@dc7ab26

[package]
version = "1.0.8" # remember to update html_root_url
#![doc(html_root_url = "https://docs.rs/serde/1.0.8")]

This is annoying and easily falls out of sync. For example mio 0.6.8 docs point to version 0.6.1: tokio-rs/mio#613.

There should be a way to keep these synchronized automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.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