Skip to main content

bind_default_substrate

Function bind_default_substrate 

Source
pub async fn bind_default_substrate(
    prefer_local: bool,
    full_access: bool,
    workdir: &Path,
    image: Option<&str>,
) -> BoundEnvironment
Expand description

Decide and build the execution environment.

  • prefer_local — user passed --local; skip the sandbox entirely.
  • full_access — user passed --full-access/-y; grant FullAccess (no HITL). Ignored inside the sandbox only in the sense that the container already isolates — it still removes the approval prompts.