FORMAT_VERSION in rustdoc::doctest::extracted - Rust
Description: The version of JSON output that this code generates.

Skip to main content

## FORMAT_VERSION

# Constant FORMAT_VERSION

Source

    const FORMAT_VERSION: u32 = 2;

Expand description

The version of JSON output that this code generates.

This integer is incremented with every breaking change to the API, and is returned along with the JSON blob into the `format_version` root field. Consuming code should assert that this value matches the format version(s) that it supports.