Zig 0.17.0-dev (Split by item) 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.
std › Build › serializeConfigurationExiting Public Function serializeConfigurationExiting Doc Source Public Function std.Build.serializeConfigurationExiting
pub fn serializeConfigurationExiting (b : *Build ) noreturn Params File Build.zig: 2674
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691 pub fn serializeConfigurationExiting (b : *Build ) noreturn {
const graph = b .graph ;
const io = graph .io ;
var stdout_buffer : [1024 ]u8 = undefined ;
var file_writer = Io .File .stdout ().writerStreaming (io , &stdout_buffer );
Serialize .write (b , &graph .wip_configuration , &file_writer .interface ) catch |err | switch (err ) {
error .WriteFailed => fatal ("failed to write configuration output: {t}" , .{file_writer .err .?}),
error .OutOfMemory => @panic ("OOM" ),
};
file_writer .flush () catch |err | fatal ("failed to write configuration output: {t}" , .{err });
// This executable is short-lived and run in Debug mode, so we'd rather
// have `zig build` run faster than catch resource leaks in the user's
// build.zig script (or, frankly, this configure runner), therefore we call
// exit directly here rather than cleanExit.
process .exit (0 );
}
Build system implementation detail.