Skip to main content

Module platform

Module platform 

Source
Expand description

Cross-platform host helpers (PATH, console UTF-8/VT, sandbox, WSL/container). Cross-platform host helpers (PATH lookup, console, sandbox, environment).

Product law: Chrome CDP is host-only (not WASM). Browser path override is XDG chrome_path / CLI launch options — not product env vars.

Rules: docs_rules/rules_rust_multiplataforma_sistemas_operacionais.md.

Structs§

HostEnvironment
Result of probing the host for container / CI / WSL / Termux / sandbox env.

Enums§

BrowserSandbox
How a resolved browser binary is packaged (affects automation reliability).

Functions§

configure_console
Configure Windows console for UTF-8 (CP 65001) and virtual terminal ANSI.
detect_browser_sandbox
Classify a browser executable path (and process env) for sandbox warnings.
first_existing_executable
First existing executable among candidate paths (skips missing / non-exec).
is_executable_file
True when path is a regular file and (on Unix) has any execute bit.
warn_if_sandboxed_browser
Emit a local warning when the resolved browser is snap/flatpak confined.
which_bin
Locate an executable on $PATH without shelling out to which/where.