This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Enum
pubconstTag = enum(u32) {
/// Body is a UTF-8 string.zig_version,
/// Body is an ErrorBundle.error_bundle,
/// Body is a EmitDigest.emit_digest,
/// Body is a TestMetadatatest_metadata,
/// Body is a TestResultstest_results,
/// Does not have a body./// Notifies the build runner that the next test (requested by `Client.Message.Tag.run_test`)/// is starting execution. This message helps to ensure that the timestamp used by the build/// runner to enforce unit test time limits is relatively accurate under extreme system load/// (where there may be a non-trivial delay before the test process is scheduled).test_started,
/// Body is a series of strings, delimited by null bytes./// Each string is a prefixed file path./// The first byte indicates the file prefix path (see prefixes fields/// of Cache). This byte is sent over the wire incremented so that null/// bytes are not confused with string terminators./// The remaining bytes is the file path relative to that prefix./// The prefixes are hard-coded in Compilation.create (cwd, zig lib dir, local cache dir)file_system_inputs,
/// Body is:/// - a u64le that indicates the file path within the cache used/// to store coverage information. The integer is a hash of the PCs/// stored within that file./// - u64le of total runs accumulated/// - u64le of unique runs accumulated/// - u64le of coverage accumulatedcoverage_id,
/// Body is a u64le that indicates the function pointer virtual memory/// address of the fuzz unit test. This is used to provide a starting/// point to view coverage.fuzz_start_addr,
/// Body is:/// - u32le test index.fuzz_test_change,
/// Body is:/// - u32le test index/// - input in remaining bytesbroadcast_fuzz_input,
/// Body is a TimeReport.time_report,
/// The first message sent by the server over the build system protocol./// Body is a `Handshake`./// This message only applies to the build system protocol.bsp_handshake = 0x80000000,
/// Notifies that a new configuration file is available./// Body is a cwd relative path to the configuration file./// This message only applies to the build system protocol.bsp_configuration,
/// Does not have a body./// This message only applies to the build system protocol.bsp_build_started,
/// Does not have a body./// This message only applies to the build system protocol.bsp_build_completed,
/// Body is a `Configuration.Step.Index`./// This message only applies to the build system protocol.bsp_step_started,
/// Body is a `BuildStepCompleted`./// This message only applies to the build system protocol.bsp_step_completed,
_,
}