Skip to content

Commit

Permalink
elaborate the docs of FORMAT_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
its-the-shrimp committed Jul 20, 2024
1 parent dfcdcca commit 4980bf3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rustdoc-json-types/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ use rustc_hash::FxHashMap;
use serde::{Deserialize, Serialize};
use std::path::PathBuf;

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

/// The root of the emitted JSON blob.
Expand Down

0 comments on commit 4980bf3

Please sign in to comment.