Skip to main content

Module build_kind

Module build_kind 

Source
Expand description

What kind of build this binary is: a published release, a local package build, or a source-tree dev build.

It is a fact of the binary, never of the data channel it runs on. An in-app upgrade keeps the data channel of the build it replaced (runtime_mode::recorded_channel), so a published release that a local build upgraded to runs on a local-… channel for good. Anything that says or decides “this is a local build” from the channel name is wrong there. Ask this instead, and show the channel only as where the data is.

Enums§

BuildKind
The kind of build a binary is.

Functions§

build_kind
The kind of the running binary. Read once: the binary does not change under a running process.
build_kind_in
The kind of the build whose binary sits in exe_dir.
build_kind_of
The kind of a build from what its binary carries: