)]}'
{
  "commit": "9c9bbb4d2b2edb7b9aa61ea8a048862bcb337615",
  "tree": "72baf6060fc9b4ea16a3d0fb2e33bb434a38e0e0",
  "parents": [
    "7d1e9756de8369db94afb998994d70455fa99ae3",
    "e45b9a3d569e78ee2f56ba64c694c6361fe6020d"
  ],
  "author": {
    "name": "Jonathan Brouwer",
    "email": "jonathantbrouwer@gmail.com",
    "time": "Mon Nov 02 22:13:53 2026 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Nov 02 22:13:53 2026 +0100"
  },
  "message": "Rollup merge of #163399 - Kixunil:cfg_version_in_doc_cfg, r\u003dfmease\n\nSupport `cfg_version` in `doc_cfg`\n\nThe (unstable) `cfg_version` feature allows one to enable features conditioned on th Rust version and `doc_cfg` makes `rustdoc` show nice documentation of feature flags. Despite these being unstable, `doc_cfg` is widely used in docs.rs and crates often turn on the feature. While it may seem pointless to support `cfg_version` since it\u0027s unstable and nobody is really using it, there are two reasons why it in fact does make sense. First, it\u0027s a step towards making both features more complete, so it\u0027s a step towards stabilization. Second, many crates currently use other ways (build scripts) to achieve the same thing as `cfg_version`. However these could still take advantage of the `doc_cfg` feature, especially on docs.rs by pretending that they do use `version` adding the attribute `#[cfg_attr(docsrs, doc(cfg(version \u003d \"1.81.0\")))]`\n\nThis commit adds a very simple support for the attribute: it translates it to \"Rust version at least {}\", which reads better than `version\u003d`. As was already discussed, the word \"version\" is too ambiguous, so saying \"Rust version\" is more clear. Also while the `\u003d` sign is considered by some to be understandable in `cfg`, it is arguably harder to read in doc, so saying \"at least\" is less confusing.\n\nCc rust-lang/rust#64796 rust-lang/rust#43781\n\nScreenshot of how the change looks in doc:\n\u003cimg width\u003d\"960\" height\u003d\"63\" alt\u003d\"Screenshot of rustdoc output after the change\" src\u003d\"https://github.com/user-attachments/assets/1981ed30-2314-463d-bc8c-e7ae2ac86c84\" /\u003e\n",
  "tree_diff": []
}
