Skip to main content

Module binary

Module binary 

Source
Expand description

Resolve the stackless CLI binary used to spawn the operator daemon.

Third-party SDK consumers must not be spawned as the daemon: only the installed CLI understands daemon run. Resolution is pure-testable via resolve_daemon_bin_from because edition 2024 + unsafe_code = "forbid" blocks in-process set_var.

Enums§

ResolveSource
How the daemon executable was resolved.

Functions§

is_cli_process
Whether mark_cli_process has been called in this process.
mark_cli_process
Mark this process as the stackless CLI entrypoint (stackless::cli::run).
resolve_daemon_bin
Resolve the CLI binary from the real process environment.
resolve_daemon_bin_from
Pure resolver for tests and resolve_daemon_bin.
should_replace_daemon
Whether a version mismatch should drain and respawn the daemon.