Skip to content

Move format-version constant to rustdoc-json-types #88620

Closed
@jyn514

Description

@jyn514

Right now, the format-version is in rustdoc and not in rustdoc-json-types, which has two downsides:

  1. It's harder to make sure they're kept in sync
  2. Downstream users can't know the version ahead of time, they're forced to hard-code it in their own code as well.

We should move it to rustdoc-json-types instead.

Originally posted by @jyn514 in #88604 (comment)

Metadata

Metadata

Assignees

Labels

A-rustdoc-jsonArea: Rustdoc JSON backendE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions