Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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 Struct

Hello

Public Struct
std.Build.abi.Hello
pub const Hello = extern struct

WebSocket server->client.

Sent by the server as the first message after a WebSocket connection opens to provide basic information about the server, the build graph, etc.

Trailing:

  • step_name_len: u32 for each steps_len
  • step_name: [step_name_len]u8 for each step_name_len
  • step_status: u8 for every 4 steps_len; every 2 bits is a StepUpdate.Status, LSBs first

Fields

tag: ToClientTag = .hello
status: BuildStatus
flags: Flags
timestamp: i64

Any message containing a timestamp represents it as a number of nanoseconds relative to when the build began. This field is the current timestamp, represented in that form.

steps_len: u32

The number of steps in the build graph which are reachable from the top-level step[s] being run; in other words, the number of steps which will be executed by this build. The name of each step trails this message.

Structs

File

Build/abi.zig:89
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
pub const Hello = extern struct {
    tag: ToClientTag = .hello,

    status: BuildStatus,
    flags: Flags,

    /// Any message containing a timestamp represents it as a number of nanoseconds relative to when
    /// the build began. This field is the current timestamp, represented in that form.
    timestamp: i64 align(4),

    /// The number of steps in the build graph which are reachable from the top-level step[s] being
    /// run; in other words, the number of steps which will be executed by this build. The name of
    /// each step trails this message.
    steps_len: u32 align(1),

    pub const Flags = packed struct(u16) {
        /// Whether time reporting is enabled.
        time_report: bool,
        _: u15 = 0,
    };
}