Skip to content

Commit 29371be

Browse files
elaborate the docs of FORMAT_VERSION
1 parent 92ce795 commit 29371be

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/rustdoc-json-types/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ use rustc_hash::FxHashMap;
77
use serde::{Deserialize, Serialize};
88
use std::path::PathBuf;
99

10-
/// rustdoc format-version.
10+
/// The version of JSON output that this crate represents.
11+
///
12+
/// This integer is incremented with every breaking change to the API,
13+
/// and is returned along with the JSON blob as [`Crate::format_version`].
14+
/// Consuming code should assert that this value matches the format version(s) that it supports.
1115
pub const FORMAT_VERSION: u32 = 31;
1216

1317
/// The root of the emitted JSON blob.

0 commit comments

Comments
 (0)