Skip to main content

capabilities_for

Function capabilities_for 

Source
fn capabilities_for(os: &str, wayland: bool) -> PlatformCapabilities
Expand description

Derive the capability flags for a given target-OS string and whether the session is Wayland. Kept pure and parameterised so every branch is unit-testable on a single host; the #[tauri::command] wrapper feeds it the real target and session type.