winit-core: drop all cfg except web

This commit is contained in:
Kirill Chibisov 2025-05-03 21:30:07 +09:00
parent cf5e422dc8
commit 634b9baea2
3 changed files with 1 additions and 26 deletions

View file

@ -1546,12 +1546,7 @@ impl ActivationToken {
/// only result in the side effect of the operation involving it being ignored (e.g. window
/// won't get focused automatically), but won't yield any errors.
///
/// To obtain a valid token, use
#[cfg_attr(
any(x11_platform, wayland_platform),
doc = " [`request_activation_token`](crate::platform::startup_notify::WindowExtStartupNotify::request_activation_token)."
)]
#[cfg_attr(not(any(x11_platform, wayland_platform)), doc = " `request_activation_token`.")]
/// To obtain a valid token consult the backend implementation.
pub fn from_raw(token: String) -> Self {
Self { token }
}