bsdkrun/binary
Locating the bsdkrun binary.
Resolution order, first match wins:
- an explicit override set with
set_binary_path, - the
$BSDKRUN_BINenvironment variable, bsdkrunon$PATH,- an in-repo dev build —
target/release/bsdkrunthentarget/debug/bsdkrun, searched from the current working directory upwards.
If nothing matches, resolve returns BinaryNotFound listing everything
it looked at.
Values
pub fn candidates() -> List(String)
Every location resolve will consider, in priority order. Exposed so
callers (and error messages) can report exactly what was searched.
pub fn set_binary_path(path: String) -> Nil
Force the SDK to use a specific bsdkrun binary, bypassing discovery.
Useful in tests, or to run against a locally built binary.