Programming Search⌘K

std.zig

The entries of std.zig in the Zig reference. This page has 114 cards.

std.zig.EmitArtifact.cacheName

pub fn cacheName(ea: EmitArtifact, gpa: Allocator, opts: BinNameOptions) Allocator.Error![]const u8

If using `Server` to communicate with the compiler, it will place requested artifacts in paths under the output directory, where those paths are named according to this function.

Kind
function
Module
std.zig

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.

std.zig.resolvePath

pub fn resolvePath(gpa: Allocator, cwd_resolved: []const u8, paths: []const []const u8) Allocator.Error![]u8

Similar to `Dir.path.resolve`, but converts to a cwd-relative path, or, if that would start with a relative up-dir (".."), an absolute path based on the cwd.

Kind
function
Module
std.zig

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.

std.zig.serializeCpu

pub fn serializeCpu(buffer: *std.array_list.Managed(u8), cpu: std.Target.Cpu) Allocator.Error!void

Renders a `std.Target.Cpu` value into a textual representation that can be parsed via the `-mcpu` flag passed to the Zig compiler.

Kind
function
Module
std.zig

Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.